Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 93
Default series objects; finding specific ones in the collection

When ever I wish to create a new series, no big deal:

Dim SeriesRandTarget As Series
Set SeriesRandTarget = myChart.SeriesCollection.NewSeries

As long as I have the object, I can use it. If I set the name
attribute as in
SeriesRandTarget .Name = "Hello"
I can collect it later if needed by:
Set myseries = myChart.SeriesCollection("Hello")

But what about this? What is the new series name I just created in
the below example? (The macro recorder has me in this fix!)

myChart.SeriesCollection.Paste Rowcol:=xlColumns,
SeriesLabels:=False, _
CategoryLabels:=True, Replace:=False, NewSeries:=True

The next recorded step is

myChart.SeriesCollection(4).Select

I tried slipping in Name:="My Name", but it croaks. How do you find
this series?

thank you
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default series objects; finding specific ones in the collection

Hi,

Maybe you can use the counter of the collection.


set myseries = myChart.SeriesCollection(myChart.SeriesCollection. count)

Cheers
Andy

On 03/04/2010 16:17, cate wrote:
When ever I wish to create a new series, no big deal:

Dim SeriesRandTarget As Series
Set SeriesRandTarget = myChart.SeriesCollection.NewSeries

As long as I have the object, I can use it. If I set the name
attribute as in
SeriesRandTarget .Name = "Hello"
I can collect it later if needed by:
Set myseries = myChart.SeriesCollection("Hello")

But what about this? What is the new series name I just created in
the below example? (The macro recorder has me in this fix!)

myChart.SeriesCollection.Paste Rowcol:=xlColumns,
SeriesLabels:=False, _
CategoryLabels:=True, Replace:=False, NewSeries:=True

The next recorded step is

myChart.SeriesCollection(4).Select

I tried slipping in Name:="My Name", but it croaks. How do you find
this series?

thank you


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 93
Default series objects; finding specific ones in the collection

On Apr 4, 6:53*am, Andy Pope wrote:
Hi,

Maybe you can use the counter of the collection.

set myseries = myChart.SeriesCollection(myChart.SeriesCollection. count)


I'll try it. I assume these are incrementing. Thanks.
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
Finding series index if I know the Series Name Barb Reinhardt Charts and Charting in Excel 2 January 23rd 07 01:01 PM
Toggle Chart Series Objects On/Off Raul Charts and Charting in Excel 2 May 20th 06 04:43 PM
How to store the lengthy value in Series collection? ramkumar_cpt Charts and Charting in Excel 1 December 16th 05 01:16 PM
Help needed in finding specific series via row. hadmybreaktoday Excel Worksheet Functions 5 August 24th 05 06:13 PM
Changing the color of a Series Collection using visual basic? Koreef Charts and Charting in Excel 1 March 17th 05 03:17 AM


All times are GMT +1. The time now is 07:52 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"