Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default calliing seriescollection by name

continuation of my previoous message on the subject. I seemed to have found
a solution through trial and rror though logic escapes me.
suppose in a chartsheet "chart1" I have two charts named "a" and "rv" then
if I use expression "select" instead of "activate" it works.
suppose chart1 is selected
when I use
activechart.SeriesCollection("a").activate
it gives runtime error 438

if I use
activechart.SeriesCollection("a").select
it works.

so far I thought "activate" and "select" are more or less synonymous. But
they are not.
at the same time if I use
chart("chart1").activate ( or select) both work.

what is the logic. Or is there flaw in my logic?




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default calliing seriescollection by name

There is no Activate method for the Series Object in the Excel object model.
However the Chart object does have both Activate and Select methods.

You could avoid trial and error by spending some time to study the Excel
object model (press F2 in the VBA editor).

"R.VENKATARAMAN" wrote in message
...
so far I thought "activate" and "select" are more or less synonymous.
But they are not.
at the same time if I use
chart("chart1").activate ( or select) both work.

what is the logic. Or is there flaw in my logic?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default calliing seriescollection by name

I do have some experience in vba though not an expert.
However I accept the REBUKE and shall amend.

Sriram N A wrote in message
...
There is no Activate method for the Series Object in the Excel object

model.
However the Chart object does have both Activate and Select methods.

You could avoid trial and error by spending some time to study the Excel
object model (press F2 in the VBA editor).

"R.VENKATARAMAN" wrote in message
...
so far I thought "activate" and "select" are more or less synonymous.
But they are not.
at the same time if I use
chart("chart1").activate ( or select) both work.

what is the logic. Or is there flaw in my logic?







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
SeriesCollection question EAB1977 Charts and Charting in Excel 2 December 22nd 08 02:29 PM
.SeriesCollection(2).Name and .Deselect Peter Sie Charts and Charting in Excel 2 July 3rd 06 03:10 AM
Chart: range info from seriescollection? Excelerate-nl Charts and Charting in Excel 1 May 24th 06 04:37 AM
calling seriescollection by name R.VENKATARAMAN Excel Programming 2 January 13th 04 01:29 PM
Possible to assign an array to a SeriesCollection Stephen Boulet Excel Programming 2 November 13th 03 06:36 PM


All times are GMT +1. The time now is 11:56 AM.

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"