Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
EPL EPL is offline
external usenet poster
 
Posts: 3
Default Chart SeriesCollection Names

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Chart SeriesCollection Names

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 461
Default Chart SeriesCollection Names

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
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
Excel Chart SeriesCollection Formula sgpl Excel Discussion (Misc queries) 1 February 19th 09 05:21 PM
Chart: range info from seriescollection? Excelerate-nl Charts and Charting in Excel 1 May 24th 06 04:37 AM
Chart: range info from seriescollection? Excelerate-nl Excel Programming 1 May 24th 06 03:09 AM
Formatting a new seriescollection in a chart object Paul Willman Excel Programming 2 August 24th 04 08:22 PM
Adding to the SeriesCollection of a chart object in VB6 E_R[_27_] Excel Programming 0 August 24th 04 06:38 PM


All times are GMT +1. The time now is 09:42 PM.

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"