+ Reply to Thread
Results 1 to 3 of 3

Run Macro Automatically When I open a specific workbook

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    18

    Run Macro Automatically When I open a specific workbook

    Hi Team,

    I have a excel file lets call it it "smidgen"... I also have written an macro in the above mentioned workbook call "Magic".

    What I want excel to do is only when I open the file that it runs the magic macro.... I don't want the macro when I create a new workbook or even open any other workbooks...

    It might help at this stage to let you know that I use excel 2013...

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Run Macro Automatically When I open a specific workbook

    Hello trent.bourne,

    It is hard to tell without seeing the Code. Does the macro open, refer to any other Workbooks, or does the specific Workbook contain links to other Workbooks? Also, is it a Public Macro or "Private"?

    "Normally", macros only run within the Workbook itself without effecting other Workbooks.

    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: Run Macro Automatically When I open a specific workbook

    Use the WorkBook_Open event in the smidgen workbook to call the Magic macro.

+ 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: 3
    Last Post: 07-12-2014, 06:04 AM
  2. [SOLVED] Run Macro Automatically When I open a specific workbook
    By trent.bourne in forum Excel General
    Replies: 1
    Last Post: 11-29-2013, 11:45 PM
  3. Macro to exit all workbook leaving one specific workbook open
    By Khanzaki in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2013, 05:09 AM
  4. Macro that promps user to open a specific workbook
    By ExcelHelpBen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2012, 07:19 AM
  5. [SOLVED] Run a macro automatically on workbook open
    By tweacle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2006, 02:40 PM

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