+ Reply to Thread
Results 1 to 1 of 1

Changing chart source data in VBA

  1. #1
    Registered User
    Join Date
    07-07-2006
    MS-Off Ver
    Excel 2007
    Posts
    60

    Changing chart source data in VBA

    Hi all. I have a few charts on a sheet that reflect the last 5 rows of data in another sheet, plus the header row above. I ran a macro recording and found out I can set this data using the following code:

    Please Login or Register  to view this content.
    I would like the macro to do this:

    Please Login or Register  to view this content.
    My questions are:
    1) How can I find out the current source data of a specific chart? (For example, I want to get the "A6:L10" part in the first code above)
    2) How can I move/increment that range down by an additional row? (e.g. move that range down a row to "A7:L11" like the second code above)

    Any ideas? I want to repeat this for almost 30 charts I have on this sheet.

    Also attached is a screen shot of the data table I am using for example.
    Attached Images Attached Images

+ 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