Test if a user defined chart name is valid

F

Fan924

I am changing chart type by macro. Is there a way to test if a user
defined chart name is valid? Excel 2000 & 2007
 
M

Master Blaster

I am changing chart type by macro. Is there a way to test if a user
defined chart name is valid?    Excel 2000 & 2007

you can use something like this:

For n = 1 To 20
On Error GoTo 987687
Chartnames(n) = ActiveSheet.ChartObjects(n).Name
987687
Next n

does this help ?
 
F

Fan924

I should have said template name like in excel 2007
In Windows 98 excel 2000, they are stored here.
"c:\Program Files\Microsoft Office\Office\XLUSRGAL.XLS"

I am looking for a validity test before applying user defined charts
to an existing chart by macro.
 
M

Master Blaster

Please indicate step by step what you would like top do, because this
is not making too much sense.

sorry
 

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