+ Reply to Thread
Results 1 to 3 of 3

Chart Data not updating when macro adds new line to data range for chart

  1. #1
    Registered User
    Join Date
    06-01-2014
    Posts
    3

    Chart Data not updating when macro adds new line to data range for chart

    I have a rainfall chart that has two columns of data A2 with Date and B2 with rainfall. I run a macro that copies the previous row A2 & B2 and inserts it above the previous row . The new row becomes 2 and the date is update to next day in A2 and B2 is cleared of previous data. This data in A2 to b2300 is added to a simple line chart but the data does not update after macro is run.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Chart Data not updating when macro adds new line to data range for chart

    Hi ig254,

    When you add the new date, the Chart is not being adjusted to the new range, which is why your chart isn't changing.

    I'd suggest your chart uses an OFFSET Function that changes the range that the Chart reads.

    Have a look at this link;

    http://peltiertech.com/Excel/Charts/...umnChart1.html
    Remember you are unique, like everyone else

  3. #3
    Registered User
    Join Date
    06-01-2014
    Posts
    3

    Re: Chart Data not updating when macro adds new line to data range for chart

    I am unsure how to use Offset in relation to this chart. Can you be more specific as I looked at the page you recommended but do not understand where I use Offset.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Updating Line Chart with Named Range
    By bruno08102013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2014, 09:48 PM
  2. [SOLVED]Line Chart from dynamic range of data
    By jason.holtzen in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-17-2014, 10:50 AM
  3. Updating Chart Series Data with a macro
    By sherry_1991 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 01:39 PM
  4. Replies: 6
    Last Post: 07-27-2012, 06:24 AM
  5. automaticaly updating chart when adds a new data
    By Dao4free in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-24-2008, 10:56 PM

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