ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   How do I view and edit the source code for a Chart in Excel 2003? (https://www.excelbanter.com/charts-charting-excel/135725-how-do-i-view-edit-source-code-chart-excel-2003-a.html)

EBB

How do I view and edit the source code for a Chart in Excel 2003?
 
Is there a way to access the code (VBA?) for a Chart created in Excel 2003? I
have generated a complicated Chart or graph which I want to then "Copy" and
modify to make several more which access different spreadsheets. It is
cumbersome to click in the Toggle box for the data ranges for X and Y.
Instead, I was hoping there might be a way to use Search and Replace to
change the text describing the data ranges.

Nick Hodge

How do I view and edit the source code for a Chart in Excel 2003?
 
EBB

Excel does not create VBA when creating a chart unless you have specifically
recorded the steps of creating it (ToolsMacrosRecord New Macro...). Even
when you have done this you may need some custom hand-written code to
complete the steps with a different sheet or range, etc.

Once you have recorded the code you can view it in the vbe by pressing
Alt+F11

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"EBB" wrote in message
...
Is there a way to access the code (VBA?) for a Chart created in Excel
2003? I
have generated a complicated Chart or graph which I want to then "Copy"
and
modify to make several more which access different spreadsheets. It is
cumbersome to click in the Toggle box for the data ranges for X and Y.
Instead, I was hoping there might be a way to use Search and Replace to
change the text describing the data ranges.



Jon Peltier

How do I view and edit the source code for a Chart in Excel 2003?
 
You could try this utility, which alters the series formula:

http://peltiertech.com/Excel/Charts/XYAreaChart2.html

If the chart's data is contained on the same sheet that the chart is
embedded in, the easiest way to make another chart like it with different
data is to copy the entire sheet, then change the data on the copy of the
sheet. The chart will update as the data is changed.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"EBB" wrote in message
...
Is there a way to access the code (VBA?) for a Chart created in Excel
2003? I
have generated a complicated Chart or graph which I want to then "Copy"
and
modify to make several more which access different spreadsheets. It is
cumbersome to click in the Toggle box for the data ranges for X and Y.
Instead, I was hoping there might be a way to use Search and Replace to
change the text describing the data ranges.





All times are GMT +1. The time now is 01:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com