If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Macro
I have created a macro in a workbook that has multiply
worksheets (tabs). The macro works great on the worksheet where the macro was created. However, when I move to a different "tab", the macro goes back to tab where is was created and runs the macro. I want to create/change my macro to a "universal" marco, where I can go to any "tab" and the macro will function properly. |
#2
|
|||
|
|||
Macro
post your code in a plain text message (i.e., don't attach a file).
in general, using "ActiveSheet" instead of a specific sheet reference is what you're after, but without having seen your code, I couldn't promise you that that wouldn't screw things up. In article , "Nicole" wrote: I have created a macro in a workbook that has multiply worksheets (tabs). The macro works great on the worksheet where the macro was created. However, when I move to a different "tab", the macro goes back to tab where is was created and runs the macro. I want to create/change my macro to a "universal" marco, where I can go to any "tab" and the macro will function properly. |
Thread Tools | |
Display Modes | |
|
|