+ Reply to Thread
Results 1 to 3 of 3

If Loops and Chart Series

  1. #1
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    If Loops and Chart Series

    I have a macro that takes a .csv file with lots of data, then selects the important data and plots a graph and outputs a .xlsb file.

    There are some check boxes on a user form that allow the addition of some points of interest on the graph; each point of interest is plotted as a new series and it works great when all four options are selected.

    If, however, only the last two points of interest are required, then check boxes 1 & 2 are left blank and the macro falls over..

    It fails to work because the series are numbered in the syntax, but if the first two points weren't plotted then those series dont exist, so when I refer to the series that I do want, it should be 2 numbers lower in name.

    Is these something clever that can be done here with series indexing?

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    Re: If Loops and Chart Series

    So I have found a work around for this problem...

    Code below..

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-25-2015
    Location
    london
    MS-Off Ver
    2007
    Posts
    54

    Re: If Loops and Chart Series

    I'm basically hiding the series, but they still exist.

    not elegant, but works for me.

+ 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: 02-19-2017, 07:52 PM
  2. Delete Pivto Chart Series when certain word/text is found in the Series Name
    By trizzo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2016, 03:19 PM
  3. Apply format of a series to a similar series in a different chart
    By Skiffie in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-05-2013, 10:43 PM
  4. Chart front-to-back series display if series are different chart types
    By Exconomist in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2012, 06:49 AM
  5. Series function disappears from Chart series edit
    By lloydsp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2011, 07:45 PM
  6. mixing column chart types for series and macro series?
    By riwiseuse in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-30-2010, 05:27 PM
  7. [SOLVED] chart data series -- plot a table as a single series
    By hjc in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-20-2005, 01:05 PM

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