![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: May 2002
Location: Houston, TX
Posts: 7,184
|
Is there a way to change a macro so that is doesn't have the actual worksheet file name. I want to use the same macro in different files but for now I have to manually edit the macro to change the filename.
I know someone will know - your help is greatly appreciated. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
You can do an Edit|Replace and replace it with a variable name of your choice and then set the variable to the different names of the different worksheets.
__________________
Kind regards, Al Chara |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: May 2002
Location: Tennessee, USA
Posts: 72
|
See also........
http://www.mrexcel.com/board/viewtop...c=8285&forum=2 ........for a similar post. Thanks, Wayne |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|