Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Macro to Update Charts Source Data

All,
I have 50 sheets containing data... I want to create the same set of
charts referencing each of these sheets. I was searching the groups
and found the following link:
http://www.peltiertech.com/Excel/Charts/ChgSrsFmla.html


I tried to run each of the example macros, but with no success. Each
time I get the error:


Run-time error '1004':
Unable to get the Formula property of the Series class


When I click on Debug it takes me to the following line of code:
mySrs.Formula = WorksheetFunction.Substitute(mySrs.Formula, strFrom,
strTo)


Can anyone give me some insight as to why this is happening? I'm
relatively new to Macros in Excel, so thanks for your patience. ;0)


Thanks,
Mary

  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default Macro to Update Charts Source Data

Are the charts on each worksheet with the data? It's probably easier if the sheets
have the same structure to make copies of a sheet with properly linked charts, then
copying the data and pasting special as values in the copied sheet.

Regarding the Change Series Formula macro, what do your chart series look like
before changing and what should they look like after changing?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

wrote:

All,
I have 50 sheets containing data... I want to create the same set of
charts referencing each of these sheets. I was searching the groups
and found the following link:
http://www.peltiertech.com/Excel/Charts/ChgSrsFmla.html


I tried to run each of the example macros, but with no success. Each
time I get the error:


Run-time error '1004':
Unable to get the Formula property of the Series class


When I click on Debug it takes me to the following line of code:
mySrs.Formula = WorksheetFunction.Substitute(mySrs.Formula, strFrom,
strTo)


Can anyone give me some insight as to why this is happening? I'm
relatively new to Macros in Excel, so thanks for your patience. ;0)


Thanks,
Mary


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
Charts not recognizing source data if original linked data is changed. JLC Charts and Charting in Excel 3 October 14th 05 01:29 AM
Charts don't update when data is changed, why not? Frank Charts and Charting in Excel 1 August 9th 05 12:15 AM
Charts won't update pwermuth Charts and Charting in Excel 8 July 15th 05 07:32 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 02:27 AM.

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"