+ Reply to Thread
Results 1 to 1 of 1

Macro to change range of Chart on Workbook Open

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    5

    Macro to change range of Chart on Workbook Open

    Hello Everyone,

    I see how to run a macro once the Workbook gets opened. What I really need help on is updating the range of the charts through a macro.

    The workbook i have attached is just a smaller template that will act as a test. There are definitely more than one charts, but for this test one chart is suffice.

    Logic:

    First I need to check all sheets in the workbook for if a chart exists. If chart doesn't exist, move to next sheet. If it does, the chart is already ranged to look at the proper columns on data. However, it is only looking at two rows on data. I want it to look at the data rows up to the rows that are populated. Fortunately, all columns will have the same number of rows. If you look on my Workbook attached, the 2nd sheet has a chart on it. if you right click and click select data, you will notice columnA and columnC selected with only 2 rows of data used. I want my macro to use the rows that are populated for that column. Please Please help!
    Attached Files Attached Files

+ 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