Macro and charts

G

Guest

I'm trying to record a macro that creates a chart from a given set of a data.
When I record the macro in a workbook and attempt to run the macro in another
workbook, I get a reference error. Is there a way to get around this?

When I go to the series tab of the chart, excel is referencing the current
workbook's sheet name for X and Y values. I want excel to reference any new
sheet from any new workbook that I open.
 
M

mcg

Chris napisal(a):
I'm trying to record a macro that creates a chart from a given set of a data.
When I record the macro in a workbook and attempt to run the macro in another
workbook, I get a reference error. Is there a way to get around this?

When I go to the series tab of the chart, excel is referencing the current
workbook's sheet name for X and Y values. I want excel to reference any new
sheet from any new workbook that I open.

see
http://peltiertech.com/Excel/Charts/ChgSrsFmla.html
mcg
 
G

Guest

That link teaches you how to edit a chart with VB, I haven't learned VB yet
so is there a simple way to just make the change in Excel?
 

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