#1   Report Post  
Posted to microsoft.public.excel.misc
Cas Cas is offline
external usenet poster
 
Posts: 12
Default Global Macro

I have recorded a macro that creates and formats a chart in Excel 2000. I
need to run this macro in other workbooks with the same type of data. This
macro also formats the raw data before creating the chart. When I run the
macro it formats the data and creates the chart just fine. But when it starts
to format the chart I get an error message "Run-time error '9': Subscript out
of range". When I run the debugger a line containing the original sheet
reference in another workbook is highlighted. How do I get rid of the
specific reference so that the macro will run in other workbooks?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,089
Default Global Macro

post your code please

Regards

Trevor


"CAS" wrote in message
...
I have recorded a macro that creates and formats a chart in Excel 2000. I
need to run this macro in other workbooks with the same type of data. This
macro also formats the raw data before creating the chart. When I run the
macro it formats the data and creates the chart just fine. But when it
starts
to format the chart I get an error message "Run-time error '9': Subscript
out
of range". When I run the debugger a line containing the original sheet
reference in another workbook is highlighted. How do I get rid of the
specific reference so that the macro will run in other workbooks?



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
Global Macro Adding rows or colums to many Excel files at the same Bryan Excel Discussion (Misc queries) 1 January 5th 07 10:29 PM
Changing Cell Reference in a macro on global base ashish128 Excel Discussion (Misc queries) 2 April 20th 06 01:16 PM
Global Macro Bo Rasmussen New Users to Excel 4 September 12th 05 03:48 PM
Global changes to links Jo Charts and Charting in Excel 2 April 15th 05 05:37 AM
Global formula George_Papas Excel Worksheet Functions 1 January 14th 05 02:31 PM


All times are GMT +1. The time now is 12:59 AM.

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

About Us

"It's about Microsoft Excel"