Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default chart id number

hold down the control key while clicking to select the chart and you should
see the name in the Name box.
(upper left corner on the formula bar - you need to have the formula bar
visible).

--
Regards,
Tom Ogilvy


"Paul" wrote in message
...
When I record a macro and, in the process, click on a
chart, the macro code includes the following:

ActiveSheet.ChartObjects("Chart 12").Activate

Is there another place to find the number (Chart 12) that
excel has assigned to its charts? I am thinking there
must be a way to get this infomation other than recording
a macro.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default chart id number

Extending Tom's reply, if you are creating the chart programmatically, you could
have your code give it a unique name, which you could access in a subsequent
routine. In fact, you are naming the chart object, so the code looks like:

ActiveChart.Parent.Name = "ChtFinYE04"

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


Tom Ogilvy wrote:

hold down the control key while clicking to select the chart and you should
see the name in the Name box.
(upper left corner on the formula bar - you need to have the formula bar
visible).


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
Number and % on same chart NM Charts and Charting in Excel 3 March 12th 10 01:31 PM
How do I set up a chart with number not percentage. liza Excel Discussion (Misc queries) 0 February 28th 07 06:40 AM
Chart number of occurences David P. Charts and Charting in Excel 1 March 23rd 06 08:12 PM
Number formatting in chart Connie Martin Charts and Charting in Excel 2 February 8th 06 05:41 PM
Number of items per day in chart. Web master Charts and Charting in Excel 2 January 27th 06 02:54 AM


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