+ Reply to Thread
Results 1 to 7 of 7

Autorun a macro

Hybrid View

  1. #1
    Paul Wisken
    Guest

    RE: Autorun a macro



    Thanks Andy,
    Sound simple, but most of that went straight over my head, so it's back
    to the old VB help now to see what you're talking about.
    Paul

    *** Sent via Developersdex http://www.developersdex.com ***

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Paul Wisken

    Two ways:

    First call your macro Auto_Open eg:
    Sub Auto_Open()

    Second, the above will work but you should really use the event procedures facility. Put the code for your macro in the ThisWorkbook pane within the VBE, rather than the Modules pane and then change the name to Workbook_Open().

    Does that make any more sense...?

    For more information about this have a look here:

    http://www.cpearson.com/excel/events.htm

    HTH

    DominicB

  3. #3
    Whiskers
    Guest

    Re: Autorun a macro

    Thanks everyone.
    It's now working perfectly

    Paul

    *** Sent via Developersdex http://www.developersdex.com ***

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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