Macro execution refers not to the active sheet/excel file

B

blop

Hi folks!

How do I tell a macro to work on the active sheet?
My problem is: I have created several macros and assigned to a toolbar.

When I move the excel file Excel everytime refers to the file where I
have assigned the macros to the toolbars...

Please help me! I have been sitting for a really long while trying to
solve this problem.

Thanks!
 
T

Tom Ogilvy

If you want the menu to use macros from the activeworkbook, you would have
to reassign them.

If you mean you have macros that need to refer to the activesheet, then use
the activesheet object in your code.
 

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