+ Reply to Thread
Results 1 to 2 of 2

Row updates not displaying in charts

  1. #1
    Registered User
    Join Date
    02-05-2010
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2007
    Posts
    2

    Row updates not displaying in charts

    I have a macro that is run every day. The macro reads a dataset from a another spreadsheet and reformats to the main worksheet. It then takes a copy of the summary data and stores it on another tab with a new row for each day's work of data. I have charts on the first sheet that I want to automatically include the data from the new rows. I used the following command, but the chart display does not update (Z = the new last row in the data series). Any thoughts?

    ActiveChart.SetSourceData Source:=Sheets("Historic").Range("A1:A" & Z & ",I1:K" & Z)

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Row updates not displaying in charts

    Hi,

    Create a variable to hold the last row, e.g. then assign the value and use the variable in the formula

    Please Login or Register  to view this content.
    Note: If YourData does not start in row 1 then you'll need to modify the variable.

    Please Login or Register  to view this content.
    However you're probably better advised to create a dynamic range name for your data and substitute that in your procedure.

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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