+ Reply to Thread
Results 1 to 5 of 5

Altering Range in Code

  1. #1
    Registered User
    Join Date
    10-30-2009
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    60

    Altering Range in Code

    Hi guys, I'm after a little help please...

    I have the following code to create some charts but I need to amend the data range. Series1 is correctly grabbing the data from R2C2:R2C9, but I'm not sure how to change the range for series2 to also look at the same columns (currently series2 is looking to only C8).

    TIA

    Jan





    Please Login or Register  to view this content.
    Last edited by dominicb; 11-03-2009 at 09:00 AM.

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

    Re: Altering Range in Code

    Can you post example workbook as my test of your code produces a second series with the following series formula

    =SERIES(Percentages!$A$5,,Percentages!$B$5:$H$5,2)

    Not correct, as it should be I5 not H5, but still not the problem you described.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-30-2009
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    60

    Re: Altering Range in Code

    Hi Andy

    Thanks for the reply and please see attached example, I hope this shows the problem I'm having.

    There may well be a more efficient way of creating the charts I need, but my knowledge is very limited as yet
    Attached Files Attached Files

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

    Re: Altering Range in Code

    Try this,

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-30-2009
    Location
    UK
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    60

    Re: Altering Range in Code

    Brilliant, thank you very much indeed!

+ 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