Chart updates

kiltubber

New Member
Joined
Aug 30, 2002
Messages
4
Hi, I have a file that I use to chart some data. I update the data every week with new data from the previous week. I have the date, (ie each day) in the first colum and the next few colums contain the data for that day. When I update the data, I have to go to each chart and update the source data so that the chart will show the new data. I would like to automate this process using a little macro. One idea I had was to update a cell each time the data is added, with the row number that the data list extends to. The macro could use this to create a new source data address so that the chart could be updated. So the question is how do I create this: ActiveChart.SeriesCollection(1).Values = "='Historical Data'!R7C5:R140C5" using a macro. Thanks John. :)
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You can set the chart's source data to refer to named ranges. For example, set the x and y sources of the chart to the names CurrentCategories and CurrentValues. Whenever you add new data, you can re-define these ranges.

The next level of automation is to define these ranges "dynamically" using formulas. Then by changing a single cell you can have all the charts pointing to the new data.
(NO Macros!)
For details, search the forum for dynamic ranges and dynamic charts; also check out http://www.tushar-mehta.com
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top