+ Reply to Thread
Results 1 to 3 of 3

Changing the default “macros in all workbooks”

  1. #1
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241

    Changing the default “macros in all workbooks”

    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.

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667

    Changing the default “macros in all workbooks”

    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.
    Best regards,

    Ray

  3. #3
    Forum Contributor
    Join Date
    08-04-2005
    Location
    Madrid, Spain
    MS-Off Ver
    2010
    Posts
    241

    Thanks, Ray

    Yes, I see now that my error lies there.
    Thank you so much, ray
    ACA

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1