Macro

N

Nicole

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.
 
J

J.E. McGimpsey

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top