Results 1 to 3 of 3

AutoRun Macro on Workbook Open

Threaded View

  1. #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
    Private Sub Workbook_Open()
    'Your code here
    End Sub
    Private Sub Workbook_Activate()
    'Your code here
    End Sub
    Last edited by Buster^; 04-18-2012 at 01:37 PM.

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