Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default 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   Report Post  
Posted to microsoft.public.excel.programming
mcg mcg is offline
external usenet poster
 
Posts: 18
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to create charts JDB Charts and Charting in Excel 1 July 25th 07 02:38 PM
Charts using Macro Aziz Ahmedabadwala[_2_] Excel Programming 4 May 26th 06 04:23 PM
Macro to Update Charts junepoppy Excel Programming 0 October 17th 05 05:15 PM
Copy CHarts using a MACRO Mike Cammack Charts and Charting in Excel 0 April 15th 05 10:17 AM
Macro for multiple charts JS Excel Worksheet Functions 1 November 19th 04 03:44 AM


All times are GMT +1. The time now is 11:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"