+ Reply to Thread
Results 1 to 3 of 3

AutoRun Macro on Workbook Open

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    AutoRun Macro on Workbook Open

    Is there a way to run a Macro when the workbook is opened?
    Last edited by lloydgodin; 04-18-2012 at 01:16 PM. Reason: spelling error

  2. #2
    Registered User
    Join Date
    04-18-2012
    Location
    Norway, Ålesund
    MS-Off Ver
    Microsoft office 2010/2013
    Posts
    51

    Re: AutoRun Macro on Workbook Open

    Yes, in the VBE you have the code editor. If it is for this workbook, select This Workbook in the project explorer Ctrl+R. Then you can see at the top you have General, select Workbook in the drop down and from there you can select (on the right side, declarations) the open(When opening a workbook) or activate(when activating a workbook).

    Or just copy the code below
    But keep in mind that the macro's have to be enabled
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Buster^; 04-18-2012 at 01:37 PM.

  3. #3
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: AutoRun Macro on Workbook Open

    Thank you. Worked great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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