Anyway to change a Chart number?

R

Roget168

Is there a way to give a chart a specific number? Everytime I delete and
create a new chart, Excel automatically give it the next sequential number,
I'm running VB in the charts so it's a pain to constantly changing my scripts
in VB. Thanks in advance.
 
A

Andy Pope

Hi,

Whilst you can not specify the automatic name you can change the name of
the newly create chart with code.

If you need more help post you existing code.

Cheers
Andy
 
R

Roget Luo

Thanks for your advise. I'm not using codes to create a chart, I'm using
codes to adjust certain aspects of various charts in my spreadsheet in a
sequencial way, and the issue I'm having is that everytime I delete a chart
and create a new one, Excel assigns the next number to the chart, which
makes my programing very difficult.

Can you email me an example of creating a new chart and assigning a name of
my choice?

Thanks again.
 
E

Ed Ferrero

Roget Luo wrote,
Thanks for your advise. I'm not using codes to create a chart, I'm using
codes to adjust certain aspects of various charts in my spreadsheet in a
sequencial way, and the issue I'm having is that everytime I delete a
chart and create a new one, Excel assigns the next number to the chart,
which makes my programing very difficult.

Hold the shift key down and click on the chart. This selects the chart
object. You can then click on the formula bar where it shows 'Chart 21' and
rename (press enter after changing the name of the object).

Ed Ferrero
www.edferrero.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top