Andy,
That didn't work. It just caused the code to break. I tried adding a line
above it that read:
activechart.parent.select
but that did not help.
What might I be doing wrong?
"Andy Pope" wrote:
Hi,
You can change the name of a chartobject with the following,
Activechart.Parent.name = "MyName"
Cheers
Andy
Papa Jonah wrote:
I am using Excel to automatically generate charts. The charts are located on
their own page.
What I want to accomplish next is to copy the chart and paste on another
sheet with some other stuff. I want to copy the entire chart inluding legend
and titles and such. However it appears that each time I run the program for
different data sets, the generated charts have different names.
I thought I would add a step to the generation so that the chart is named
where then I could then reference the chart by name to copy it. However, I
am not able to get the naming syntax down correctly.
Any help would be greatly appreciated.
TIA
--
Andy Pope, Microsoft MVP - Excel
http://www.andypope.info