+ Reply to Thread
Results 1 to 2 of 2

Setting line chart settings in VBA for unspecified number of lines in a chart

  1. #1
    Registered User
    Join Date
    01-28-2016
    Location
    Western Austalia
    MS-Off Ver
    2010
    Posts
    36

    Setting line chart settings in VBA for unspecified number of lines in a chart

    Hi there

    I have a toggle button which switches between a bar and a line chart. However, I wish the lines in the chart to have certain settings, so I have entered the following after switching to a line chart:

    Please Login or Register  to view this content.
    Now, this is ok when there are just 3 measures/lines, but was wondering how I would go about setting this up to cater for additional measures (not sure how to write a little loop and how to apply this to the above). Unless of course there is an easier way to apply it to all lines regardless of the number?

  2. #2
    Registered User
    Join Date
    01-28-2016
    Location
    Western Austalia
    MS-Off Ver
    2010
    Posts
    36

    Re: Setting line chart settings in VBA for unspecified number of lines in a chart

    Found quite a few older reports to indicate that this could not be done, but I managed to figure it out after some hit and misses!

    Just had to count number of series in the chart, use a loop to count from 1 to series count and apply formatting!

    Here it is!

    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)

Similar Threads

  1. Replies: 2
    Last Post: 11-14-2012, 08:59 AM
  2. All the series lines in the chart are drawn on the same line
    By JMicke in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-13-2012, 07:15 AM
  3. How to stop lines in a line chart?
    By nickFe in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-08-2011, 12:51 AM
  4. I can't get any lines in my line chart
    By Alex in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-07-2006, 11:05 PM
  5. [SOLVED] Vertical lines in a line chart
    By Enna in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 08-01-2006, 07:10 AM
  6. [SOLVED] Lines are hidden on line chart
    By FuadsCurse in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-07-2006, 04:00 PM
  7. [SOLVED] Lines missing in line chart
    By Dave_lineless in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-13-2005, 04:05 PM
  8. [SOLVED] How do I create vertical lines in a line chart?
    By jrmruz in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-01-2005, 10:05 AM

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