Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default How do I change the source worksheet for 100 charts automatically.

I have a worksheet with 100 charts that source a set of five worksheets,
financial forecast A. I create several forecasts (sets of 5 worksheets) and
copy over worksheet with 100 charts, but the charts reference financial
forecast A when I want them to source from financial forecast B. To change
the chart source to financial forecast B, I now have to open each chart and
change the source from A to B. Is there a way to do this automatically,
similar to the edit, find, replace function for data in cells?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default How do I change the source worksheet for 100 charts automatically.

Hi,

You would need to write VBA code to do this.
Given you know what the value is you want to change you should be able
to change the series formula.

an example of a series formula could be,

=SERIES("Series Name",,'financial forecast A'!$E$1:$E$4,1)

so your code would be something like

activechart.SeriesCollection(1).formula = _
replace(activechart.SeriesCollection(1).formula, _
"financial forecast A", _
"financial forecast B")

Jon has some VBA coding for charts
http://peltiertech.com/Excel/ChartsH...kChartVBA.html

But if you need more help on the coding post back.

Cheers
Andy


Excel Forecaster wrote:
I have a worksheet with 100 charts that source a set of five worksheets,
financial forecast A. I create several forecasts (sets of 5 worksheets) and
copy over worksheet with 100 charts, but the charts reference financial
forecast A when I want them to source from financial forecast B. To change
the chart source to financial forecast B, I now have to open each chart and
change the source from A to B. Is there a way to do this automatically,
similar to the edit, find, replace function for data in cells?


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can charts automatically change by entering new range of dates Sean Moor[_2_] Charts and Charting in Excel 17 June 17th 08 06:26 PM
VBA to automatically change source data for existing chart ETLahrs Charts and Charting in Excel 3 April 21st 08 09:27 PM
VBA to automatically change source data for existing chart ETLahrs Charts and Charting in Excel 0 April 21st 08 08:41 PM
How do I create charts that change source data automatically? cbalster Charts and Charting in Excel 0 May 26th 06 08:19 PM
change source worksheet neeraj Excel Discussion (Misc queries) 2 September 21st 05 10:16 PM


All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"