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

I asked this before but I'm still not clear on it.

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
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
series objects; finding specific ones in the collection cate Charts and Charting in Excel 2 April 4th 10 03:25 PM
Number of objects in a collection CK Excel Programming 4 April 14th 08 02:06 AM
Passing Objects from Excel VBA collection to a VB6 DLL Dan[_50_] Excel Programming 6 February 15th 06 10:34 PM
Help needed in finding specific series via row. hadmybreaktoday Excel Worksheet Functions 5 August 24th 05 06:13 PM
Range objects in a collection Corey B Excel Programming 2 September 25th 04 06:24 PM


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