+ Reply to Thread
Results 1 to 3 of 3

Enable macro in all spreadsheets

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    NC
    MS-Off Ver
    Excel 2007
    Posts
    42

    Post Enable macro in all spreadsheets

    I have a macro in my toolbar that I would like applied to all of my spreadsheets. When I select the macro button, the spreadsheet that I originally generated the macro in opens, and then the macro runs. Instead of opening that original spreadsheet everytime I want to run the macro, is there a way of having it available for all spreadsheets?

    Thanks for the help in advance!

  2. #2
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Enable macro in all spreadsheets

    Put the macro in your "personal.xlsb" workbook and make a tool bar button for it.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Enable macro in all spreadsheets

    Hi Randy.

    Try this:-

    Record a new macro [ Something short like select a1 ]. with the macro name that you want to use. BUT....... Make sure that when you record it specify that you want it recorded in your personal workbook.


    Now copy the code in your original macro.

    now select the edit option for the macro in your personal workbook. select visualbasic - macros - edit.

    paste your code inside the new macro. now close visual basic.

    Ok that macro is always available whenever excel is open.

    BUT. Please make sure you put some code to check that it only runs in the right spreadsheet.

    ALSO. You can select a shortcut to start the macro. something like ctrl a or ctrl shift a.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 08-06-2013, 08:21 AM
  2. Big challenge: protect multiple sheets AND enable outlining AND enable insert comment
    By visschercaravelle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2010, 11:46 AM
  3. VBA select default Don't Enable / Enable macros Setting
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2006, 03:50 PM
  4. Message to enable macro in workbook when no macro exists
    By Barb Reinhardt in forum Excel General
    Replies: 2
    Last Post: 07-05-2005, 12:05 PM
  5. How do I enable a macro?
    By danison in forum Excel General
    Replies: 1
    Last Post: 06-02-2005, 09:05 AM

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