Function that copies a charts format

C

CalOTA

I would like to make a macro that takes a chart object as an input and
outputs a chart object that is the same format as the input chart in
every way except for the data inside of it. So each series in the
chart will be the same format and the format of the file and the legend
and everything will be the same as the input format. Any help on this
would be appreciated. Thanks alot
 
J

Jon Peltier

You could take the first workbook with the chart, and save it as a template.
Then create a new file based on the template and paste the new data on top
of the data in the template. If you can make a reasonable template you may
not need a macro, and if you still do, it is easier to implement than
creating a new chart from scratch and applying formats.

- Jon
 
V

vezerid

Without the Macro Recorder you also have the option of clicking on the
source chart, Edit/Copy, and then select the target chart, and
Edit|Paste Special..., select format.

HTH
Kostis Vezerides
 
Top