This is the mechanism behind the Change Series Formula macro I've posted
on my web site:
http://peltiertech.com/Excel/Charts/ChgSrsFmla.html
I have a few choices built into it: Active Chart vs. All Charts on
Sheet. Another For-Next loop around that will get all charts on all sheets.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
Tom Ogilvy wrote:
Possibly you could loop through the seriescollection of each chart and do
something like:
ActiveChart.SeriesCollection(1).Formula = Application.Substitute( _
ActiveChart.SeriesCollection(1).Formula,"$F","$H")
The results of checking the formula property is
? ActiveChart.SeriesCollection(1).Formula
=SERIES('[aa_book1.xls]Sheet1'!$F$1,,'[aa_book1.xls]Sheet1'!$F$2:$F$14,1)