PC Review


Reply
Thread Tools Rate Thread

Changing source for series collection in charts

 
 
=?Utf-8?B?SmJM?=
Guest
Posts: n/a
 
      12th Oct 2004
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
 
Reply With Quote
 
 
 
 
Greg Koppel
Guest
Posts: n/a
 
      12th Oct 2004
It's been awhile since I worked with charts, but I seem to recall a similar
problem that I worked around by deleting all but one series, changing its
reference and then adding in other series with information regarding
secondary axis, etc.

HTH, Greg

"JbL" <(E-Mail Removed)> wrote in message
news:B5155F6C-2DB0-48DC-88E1-(E-Mail Removed)...
> 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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Charts - Changing Number of Series Ben Weyenberg Microsoft Excel Charting 3 8th Jul 2008 10:30 PM
charts source data series copying Lance Hoffmeyer Microsoft Excel Programming 1 14th Mar 2008 04:10 PM
Changing a charts series order =?Utf-8?B?Q3NtaXRo?= Microsoft Excel Charting 1 19th Jul 2007 09:49 AM
Changing the color of a Series Collection using visual basic? =?Utf-8?B?S29yZWVm?= Microsoft Excel Charting 1 17th Mar 2005 03:17 AM
Copy Series of Formatted Charts & easily Chg Range source Kohai Microsoft Excel Charting 5 1st Sep 2004 05:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:22 AM.