+ Reply to Thread
Results 1 to 2 of 2

Data Plots Generate Plot Graph with Solid / Dash Line

  1. #1
    Registered User
    Join Date
    08-08-2008
    Location
    east coast
    Posts
    10

    Data Plots Generate Plot Graph with Solid / Dash Line

    I am trying to plot a graph using VBA and have generated the plot. It is a line graph, I'm connecting the points (below) with a line, however I would cells 1, 2 and 3 to be connected with a solid line and points 3 and 4 to be connected with a dash line.

    1 23
    2 32
    3 25
    4 44

    I am trying to use VBA to do this, because I have an If Statement which chooses which points should be connected with a dash and which points should be solid.

    Any thoughts to get my started or if this is even possible would be greatly helpful. Thanks

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Data Plots Generate Plot Graph with Solid / Dash Line

    Hello batmanfan,

    have you tried firing up the macro recorder while you manually change the format of the datapoint? You'll end up with some usable code, for example:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1