Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Charting / August 2006

Tip: Looking for answers? Try searching our database.

Selecting chartobject without index no.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jaylin - 23 Aug 2006 18:38 GMT
I have 25 worksheets each with 2 graphs.
I need to revise the source series for all the graphs in these worksheets.

I thought I can use VB language to auto change the series reference
but I do not know the index number for each of the chart

    "ActiveSheet.ChartObjects("index").Activate    

Hope I could have advice on how to activate each charts without useing the
chart index

Signature

Thanks a million for your time and expert advice :-)
Jaylin
*****Jaylin Message ended*******

Jon Peltier - 24 Aug 2006 02:09 GMT
Well, first of all, if the index is a number, make sure you don't put it in
quotes. Second of all, you can name the charts uniquely, either in code if
the charts are generated automatically, or by hand after the fact. This page
discusses chart names:

   http://peltiertech.com/Excel/ChartsHowTo/NameAChart.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______

> I have 25 worksheets each with 2 graphs.
> I need to revise the source series for all the graphs in these worksheets.
[quoted text clipped - 6 lines]
> Hope I could have advice on how to activate each charts without useing the
> chart index
Jaylin - 24 Aug 2006 04:10 GMT
Dear Mr Peltier

Thank you very much for the useful advice.

I have problem activating a chart as I do not know the chart index number.
Would appreciate your additional advice.
Signature

Thanks a million for your time and expert advice :-)
Jaylin
*****Jaylin Message ended*******

> Well, first of all, if the index is a number, make sure you don't put it in
> quotes. Second of all, you can name the charts uniquely, either in code if
[quoted text clipped - 20 lines]
> > Hope I could have advice on how to activate each charts without useing the
> > chart index
Jon Peltier - 24 Aug 2006 16:30 GMT
To find out the chart object index, run this from the Immediate Widow, and
see what's activated:

ActiveSheet.ChartObjects(1).Select

Change the (1) to see what all the numbers refer to.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______

> Dear Mr Peltier
>
[quoted text clipped - 32 lines]
>> > the
>> > chart index
Jon Peltier - 24 Aug 2006 16:31 GMT
To find out the chart object index, run this from the Immediate Widow, and
see what's activated:

ActiveSheet.ChartObjects(1).Select

Change the (1) to see what all the numbers refer to.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______

> Dear Mr Peltier
>
[quoted text clipped - 32 lines]
>> > the
>> > chart index
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.