+ Reply to Thread
Results 1 to 5 of 5

Creating chart series using variables

  1. #1
    Registered User
    Join Date
    01-29-2007
    Posts
    92

    Question Creating chart series using variables

    I would like to add series to a chart based on variables. Some code below to show what i want to graph.

    Please Login or Register  to view this content.
    But I would like to assign the name, XValues and Values show above based on variables X, Y, a, b

    Please Login or Register  to view this content.
    It's the syntax that i can't get correct. I have a reasonable amount of VBA experience but this one always gives me trouble.

    Schwizer
    Last edited by vlady; 01-15-2013 at 07:32 PM.

  2. #2
    Registered User
    Join Date
    08-02-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Creating chart series using variables

    using your example:

    Please Login or Register  to view this content.
    Last edited by vlady; 01-15-2013 at 07:32 PM.

  3. #3
    Registered User
    Join Date
    01-29-2007
    Posts
    92

    Re: Creating chart series using variables

    I run into trouble because my variables are numbers not letters and I would prefer not to write a case select statement to convert numbers 1-26 into their letter counterparts.

  4. #4
    Registered User
    Join Date
    08-02-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Creating chart series using variables

    sorry, I misunderstood what you were asking. There are numerous ways to solve this issue, one of the most straight-forward is to use R1C1 notation in the formula:

    Please Login or Register  to view this content.
    hopefully I put all the quotation marks and ampersands in the rights spots but I'm sure you get the point!

  5. #5
    Registered User
    Join Date
    01-29-2007
    Posts
    92

    Re: Creating chart series using variables

    Thanks, that's what i needed.

+ 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