#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 577
Default reset chart names

I have a VBA function that will copy 12 charts from various workbooks into a
single workbook. I run this macro once a month. Before I run the macro I
delete all the charts from the single workbook. After running the macro I
notice that the chart names (e.g. 1,2,3,...) increase by the number of charts
I copy. For example when I first ran the macro the charts in the single
workbook were named 1 ..12. After deleting the charts in the single workbook
and running the macro again the charts are named 13..24. Is there a way to
reset the chart names so they are always 1..12 in the single workbook?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 5,600
Default reset chart names

After deleting the charts, and all shapes on the sheet (if you want to keep
any temporarily cut/paste them to another sheet), save the workbook, close
it, reopen it. That's the only way I know to reset the object counter.
]
Regards,
Peter T

"Scott" wrote in message
...
I have a VBA function that will copy 12 charts from various workbooks into

a
single workbook. I run this macro once a month. Before I run the macro I
delete all the charts from the single workbook. After running the macro I
notice that the chart names (e.g. 1,2,3,...) increase by the number of

charts
I copy. For example when I first ran the macro the charts in the single
workbook were named 1 ..12. After deleting the charts in the single

workbook
and running the macro again the charts are named 13..24. Is there a way

to
reset the chart names so they are always 1..12 in the single workbook?



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
Names on a Bubble Chart Jen[_4_] Charts and Charting in Excel 2 June 27th 07 11:45 PM
chart legend names in a chart itself Word-Dancer Charts and Charting in Excel 3 January 24th 07 11:49 AM
How to prevent Names of the Series being reset Joe Excel Discussion (Misc queries) 0 October 10th 06 12:50 PM
x y scatter chart series ranges reset to x(range) = y(range) Brakerm19 Charts and Charting in Excel 4 September 26th 06 11:13 PM
Chart names nsv Charts and Charting in Excel 2 October 18th 05 12:20 PM


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