Dynamically Update Chart With Latest X Columns Of Data As New Data Is Updated
I have a set of charts (10) that rely on new data each week.
Each chart uses the latest 12 columns of data and the range does not grow dynamically.
It is always the latest 12 columns of data.
The data range is a moving 12 columns of data, i.e. moving to the right with the addition of a new column of data each week.
The current week's data range (12 weeks of data) is:
=SERIES(Data!$D$13,Data!$DK$4:$DV$4,Data!$DK$80:$D V$80,1)
Next week's data range (12 weeks of data) will be:
=SERIES(Data!$D$13,Data!$DL$4:$DW$4,Data!$DL$80:$D W$80,1)
From the above example, the data is populated in columns in the worksheet by adding a new column of data each week.
The new column is added after the last populated column.
I need some code that will update the moving data range (12 columns only) so the charts will automatically update
and refresh.
Thanks
VBA for chart data range update (12 cols of data) that moves to the right
Quote:
Originally Posted by
Excel Fox
Can be done with a few simple formulas and named ranges. Here's a sample. Post back if you need clarity on how to use it.
Excel Fox, Thank you. Looking at the code, I believe this will work. Will try it with the charts tomorrow.