+ Reply to Thread
Results 1 to 9 of 9

Run macro on opening of any excel file

  1. #1
    Forum Contributor
    Join Date
    09-13-2008
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    120

    Run macro on opening of any excel file

    I need to have a macro that runs everytime any workbook is opened. I tried searching around, but couldn't find anything that accomplished this without adding something to each specific workbook.


    Thanks in advance!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Run macro on opening of any excel file

    In the ThisWorkbook module of Personal,

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Run macro on opening of any excel file

    Shg,
    Is there a way around for this if the file has to be shared.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Run macro on opening of any excel file

    Around what?

  5. #5
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Re: Run macro on opening of any excel file

    I mean to ask, the code runs on the personal workbook, which is saved on the desktop.

    How can we use it to run a program that is on a module that is shared with several people

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Run macro on opening of any excel file

    That question isn't relevant to this thread. Please start your own thread.

  7. #7
    Forum Contributor
    Join Date
    09-13-2008
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    120

    Re: Run macro on opening of any excel file

    Quote Originally Posted by shg View Post
    In the ThisWorkbook module of Personal,

    Please Login or Register  to view this content.

    Works like a charm, thanks!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Run macro on opening of any excel file

    You're welcome.

  9. #9
    Forum Contributor
    Join Date
    09-13-2008
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    120

    Re: Run macro on opening of any excel file

    Another question related to this. The macro works perfectly on all Windows machines, but a few of my colleagues have Mac and we tried entering this code into their personal workbook in the same fashion and no luck - doesn't seem to activate when we open the same exact file. Any ideas?

    Thanks in advance!

+ 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. [SOLVED] How macro file opening automatically when Excel open
    By ndiaye in forum Excel General
    Replies: 3
    Last Post: 11-12-2019, 08:07 AM
  2. Excel VBA, macro for opening merged Word file
    By Jerry00769 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2015, 05:19 PM
  3. Getting Macro are disabled message when opening my excel file?
    By RustyNail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2015, 01:16 PM
  4. Macro to delete excel file on opening
    By dantray02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2014, 01:11 PM
  5. Activate VB Macro when opening excel file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-21-2012, 01:35 PM
  6. Macro/VBA needed for opening excel file
    By tcw1986 in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 01-16-2012, 05:08 AM
  7. Macro available when opening new excel file
    By skrimpy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2005, 08:07 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