PC Review


Reply
Thread Tools Rate Thread

Chart SeriesCollection Names

 
 
EPL
Guest
Posts: n/a
 
      8th Oct 2009
Is there a way to check to see if a certain series has been displayed on a
chart? I have several data sets that can be plotted depending on a user
selection. I have 5 data sets to be plotted on the secondary Y axis, one of
which has a high maximum scale value. I want to check to see if this series
has been plotted and if so, delete it before plotting the others. It may not
really matter since the larger scale series will simply disappear off the
screen when the lower axis scale is set.
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      8th Oct 2009
If you know where the source data is locted you can get each of the series
source data range and then use intersect to see if the series source address
falls into the range where the data is located. I can help if this is the
method you want to use.

"EPL" wrote:

> Is there a way to check to see if a certain series has been displayed on a
> chart? I have several data sets that can be plotted depending on a user
> selection. I have 5 data sets to be plotted on the secondary Y axis, one of
> which has a high maximum scale value. I want to check to see if this series
> has been plotted and if so, delete it before plotting the others. It may not
> really matter since the larger scale series will simply disappear off the
> screen when the lower axis scale is set.

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      8th Oct 2009
Dim srs As Series
For Each srs In ActiveChart.SeriesCollection
If srs.Name = "Name of series I want to delete" Then
srs.Delete
End If
Next

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



EPL wrote:
> Is there a way to check to see if a certain series has been displayed on a
> chart? I have several data sets that can be plotted depending on a user
> selection. I have 5 data sets to be plotted on the secondary Y axis, one of
> which has a high maximum scale value. I want to check to see if this series
> has been plotted and if so, delete it before plotting the others. It may not
> really matter since the larger scale series will simply disappear off the
> screen when the lower axis scale is set.

 
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
Excel Chart SeriesCollection Formula sgpl Microsoft Excel Misc 1 19th Feb 2009 05:21 PM
Chart Object - SeriesCollection property Alan Microsoft Access VBA Modules 9 26th Jan 2008 10:54 AM
Chart: range info from seriescollection? =?Utf-8?B?RXhjZWxlcmF0ZS1ubA==?= Microsoft Excel Programming 1 24th May 2006 03:09 AM
Can't set Chart's SeriesCollection XValues =?Utf-8?B?Qlc=?= Microsoft Excel Programming 2 26th Sep 2005 05:32 AM
Re: Adding to the SeriesCollection of a chart object in VB6 E_R Microsoft Excel Programming 0 24th Aug 2004 06:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.