LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Changing Macro Name?

Hi everyone,

Say I created a macro I named "Base" in a an excel workbook named
ABC.xls

Later, say I changed the file name to DEF.xls

Now, when I click on the macro button to execute, I get "out of range"
error and the file close!

How can I make the macro name is independent of the file name; so it
doesn't keep referring to the old file name?

Regards,
Mike

 
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
Why is my macro changing sum to count? punter Excel Discussion (Misc queries) 2 June 21st 06 09:51 PM
Help with changing a Macro Mike Rogers Excel Discussion (Misc queries) 1 March 26th 06 11:51 PM
Help with changing a Macro Mike Rogers Excel Discussion (Misc queries) 0 March 26th 06 11:43 PM
Macro Ran in Excel 97 but in XP. What Needs Changing JB[_2_] Excel Programming 1 February 12th 04 08:46 PM
Macro for changing tabs Chip Pearson Excel Programming 5 February 12th 04 08:17 PM


All times are GMT +1. The time now is 07:11 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"