LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JbL JbL is offline
external usenet poster
 
Posts: 17
Default Changing source for series collection in charts

I have been using Jon Peltier's Change Series formula for charts macro from
his website (thank you!), but I am having trouble getting a change string to
work when there are 2 or more series in the chart, especially with 2 y axis.
It seems that it changes the 2nd series to 1st series and makes both series
have the exact same source data, even if they are from different sheets and
the changed string for one should not have any effect on the other (meaning
they don't share the reference being changed).

The place where he makes the change is basically the following code:

''' JUST THE ACTIVE CHART
For Each mySrs In ActiveChart.SeriesCollection
mySrs.Formula = WorksheetFunction.Substitute(mySrs.Formula,
strFrom, strTo)
Next

I have tried to work with specifically
activechart.seriescollection(n).formula and I keep getting the same results.
Can anyone shed some light on how I can only change one series on the chart?

Thank you. JBL
 
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
Copying Charts While Changing Source Data David Haley Charts and Charting in Excel 8 August 2nd 07 04:50 PM
Changing a charts series order Csmith Charts and Charting in Excel 1 July 19th 07 09:49 AM
Changing the color of a Series Collection using visual basic? Koreef Charts and Charting in Excel 1 March 17th 05 03:17 AM
VBA Excel - changing series source. Nick Bennett[_2_] Excel Programming 3 September 29th 04 03:35 AM
VBA Excel - changing series source. Nick Bennett[_2_] Excel Programming 0 September 24th 04 09:00 PM


All times are GMT +1. The time now is 11:48 AM.

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

About Us

"It's about Microsoft Excel"