Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Assign macro name to menu command w/o using workbook name

I would like to assign a macro (which is in my current workbook) to a menu
command, but I would like the reference name of the macro to NOT include the
actual name of the workbook. For example, if I assign "Macro1" (no quotes)
to a menu command, Excel automatically expands that to "Book1!Macro1". I do
not want "Book1" to be referenced, because I frequently copy this macro
around to other books not named "Book1". When I try to use the menu command
in another workbook not named Book1, it complains because it can't find
"Book1!Macro1" (even though Macro1 is in the current workbook).

Using Excel 2003. Thanks.
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
Using a macro to create a macro in another workbook Gizmo63 Excel Worksheet Functions 2 May 15th 06 09:48 AM
Help:Running a macro in one excel workbook from another workbook R Kapoor Setting up and Configuration of Excel 3 January 13th 06 05:11 AM
How can I get a validation to run in a macro on a shared workbook? arewa Excel Discussion (Misc queries) 3 January 2nd 06 11:31 PM
Macro to open workbook and copy and paste values in to orig workbo Dena X Excel Worksheet Functions 1 December 15th 05 11:13 PM
workbook macro help ditchy Excel Discussion (Misc queries) 2 December 27th 04 04:48 AM


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