+ Reply to Thread
Results 1 to 4 of 4

How to change the range in a 2-series chart

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    Madrid, Spain
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to change the range in a 2-series chart

    Hi.

    Using VBA 6.3 with Excel 2003, I'm trying to change the range in a chart with 2 series:

    Please Login or Register  to view this content.

    But, when executing, I get this error message in the "Error Line":

    Please Login or Register  to view this content.

    What am I doing wrong? Thank you very much in advance

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: How to change the range in a 2-series chart

    Are you setting the reference to or from a range that contains no plotable data?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-24-2011
    Location
    Madrid, Spain
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to change the range in a 2-series chart

    Hi.

    Thank you very much for your answer, but I don't understand very well what you mean with "Set the reference". How can I set the reference?

    "DataSourceSheet'!R8C1:R18C1" does exist and contains 11 rows with the value "Jan 1". I suppose that the error code line would print the "Jan 1" value on the X axis. In fact, two lines before it's executed with no problem (but with "SeriesCollection(1)").

    By the way, I copied the code from "Tools > Macro > Record new macro...", but if I execute it I get the error code.

    Regards.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: How to change the range in a 2-series chart

    Post example workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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