Changing the default “macros in all workbooks”

A

aca

In Excel, when we open several workbooks containing macros, the default
option is that the macros of them all are active; which sometimes
causes a particular macro to act on the wrong file or workbook.
So I have to MANUALLY go to TOOLS>MACROS and, in the MACROS IN box
below the list of macros, select the option THIS WORKBOOK instead of the
default ALL WORKBOOKS.
Is there a way of having that default permanently so changed on my
Excel, or of having it changed AUTOMATICALLY on opening the workbook?

Many thanks for any help or tip.
A. C.
 
R

raypayette

It seems to me that your code needs to be edited.
The macros' names should be unique.
The sheets and the workbooks should have unique names.
The code should refer to specifiv sheets.
You can use ThisWorkbook.Name in 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