Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro and charts
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro and charts
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro and charts
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? "mcg" wrote: 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro and charts
Modify your code to refer to the activesheet.
-- Regards, Tom Ogilvy "Chris" wrote: 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. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro and charts
I don't know how to do that
"Tom Ogilvy" wrote: Modify your code to refer to the activesheet. -- Regards, Tom Ogilvy "Chris" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to create charts | Charts and Charting in Excel | |||
Charts using Macro | Excel Programming | |||
Macro to Update Charts | Excel Programming | |||
Copy CHarts using a MACRO | Charts and Charting in Excel | |||
Macro for multiple charts | Excel Worksheet Functions |