Chart name

N

nsv

Here is an easy one, I guess, for those who know the answer:

Charts on a worksheet are named Chart1, Chart2, etc. as they ar
created, and this is the name you must refer to when manupulating the
in VBA.
Is it possible to look up the name of a chart, and if affirmative is i
possible to change it?


NS
 
A

Andy Pope

Hi,

Hold the Shift key whilst selecting the chartobject, sizing handles
shold be white instead of black, and the charts name will appear in the
Name Box (next to the formula bar). You can then change the charts name
via the name box.

With code use,

Activechart.parent.name = "NewName"

Cheers
Andy
 

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