Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John
 
Posts: n/a
Default Excel Charts(Graphs) & Macros

I'm writring macros to create graphs & pivot tables, but every time I create
a graph, the lable name changes.
Ie Chart1 to Chart2.

Is there a way tohave a constant name for each graph????
  #2   Report Post  
bj
 
Posts: n/a
Default

If you are making the gapohs onn their own sheets, They must have different
names.
if not you can change the title inthe macro to what you want it to be.
record a macro where you change the name of a chart tto find the format and
in the main macro just rename the chart.

"John" wrote:

I'm writring macros to create graphs & pivot tables, but every time I create
a graph, the lable name changes.
Ie Chart1 to Chart2.

Is there a way tohave a constant name for each graph????

  #3   Report Post  
John
 
Posts: n/a
Default

Thanks, but when I try to record a macro to re-name this, I don't know where
the "Chart1" is stored.
If I record a macro to delete the chart anmd view this macro, The macro sees
Chart1, but if I create again it will be Chart2??

"bj" wrote:

If you are making the gapohs onn their own sheets, They must have different
names.
if not you can change the title inthe macro to what you want it to be.
record a macro where you change the name of a chart tto find the format and
in the main macro just rename the chart.

"John" wrote:

I'm writring macros to create graphs & pivot tables, but every time I create
a graph, the lable name changes.
Ie Chart1 to Chart2.

Is there a way tohave a constant name for each graph????

  #4   Report Post  
bj
 
Posts: n/a
Default

the initial names for the charts are going to increrment by one each time a
new chart is added, even if ther previous charts on that sheet are deleted.
this would be ithe index number of that chart. You can either refer to a
chart by an index or a name
Chartobjects(1) would always refer to the first chart generated on any given
worksheet.


"John" wrote:

Thanks, but when I try to record a macro to re-name this, I don't know where
the "Chart1" is stored.
If I record a macro to delete the chart anmd view this macro, The macro sees
Chart1, but if I create again it will be Chart2??

"bj" wrote:

If you are making the gapohs onn their own sheets, They must have different
names.
if not you can change the title inthe macro to what you want it to be.
record a macro where you change the name of a chart tto find the format and
in the main macro just rename the chart.

"John" wrote:

I'm writring macros to create graphs & pivot tables, but every time I create
a graph, the lable name changes.
Ie Chart1 to Chart2.

Is there a way tohave a constant name for each graph????

  #5   Report Post  
Jon Peltier
 
Posts: n/a
Default

Chart Names:
http://peltiertech.com/Excel/ChartsH...ameAChart.html

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


bj wrote:
the initial names for the charts are going to increrment by one each time a
new chart is added, even if ther previous charts on that sheet are deleted.
this would be ithe index number of that chart. You can either refer to a
chart by an index or a name
Chartobjects(1) would always refer to the first chart generated on any given
worksheet.


"John" wrote:


Thanks, but when I try to record a macro to re-name this, I don't know where
the "Chart1" is stored.
If I record a macro to delete the chart anmd view this macro, The macro sees
Chart1, but if I create again it will be Chart2??

"bj" wrote:


If you are making the gapohs onn their own sheets, They must have different
names.
if not you can change the title inthe macro to what you want it to be.
record a macro where you change the name of a chart tto find the format and
in the main macro just rename the chart.

"John" wrote:


I'm writring macros to create graphs & pivot tables, but every time I create
a graph, the lable name changes.
Ie Chart1 to Chart2.

Is there a way tohave a constant name for each graph????

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Executing of excel Macros. KarthikK Excel Discussion (Misc queries) 4 June 28th 05 12:00 PM
help with excel (maybe macros) laskuh Excel Worksheet Functions 1 March 20th 05 12:03 PM
How do I update Excel 2000 macros to work in Excel 2002? BobPetrich Excel Discussion (Misc queries) 3 January 4th 05 04:06 PM
how can i edit excel 4 macros in Excel 2003 Pedrito1967 Excel Worksheet Functions 0 December 7th 04 07:21 PM


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