+ Reply to Thread
Results 1 to 4 of 4

Issue Trying To Autorun Macro

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Issue Trying To Autorun Macro

    I have my macro, already created
    Please Login or Register  to view this content.
    I've now decided I want to autorun this macro on opening the workbook. When I add
    Please Login or Register  to view this content.
    at the beginning it returns an error.

    How and where do I add this command?

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Issue Trying To Autorun Macro

    In the ThisWorkbook module of your workbook:

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Issue Trying To Autorun Macro

    Quote Originally Posted by romperstomper View Post
    In the ThisWorkbook module of your workbook:

    Please Login or Register  to view this content.
    That works great, thanks. What if I had more than one macro in the same workbook that I wanted to autorun at start?

  4. #4
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Issue Trying To Autorun Macro

    Never mind, I've answered my own question now.

    Thanks for your help.

+ 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. Autorun macro
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2012, 10:21 AM
  2. [SOLVED] autorun a macro
    By Smudge in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2006, 08:25 AM
  3. [SOLVED] Autorun macro
    By Kelly in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2006, 12:10 PM
  4. MACRO AUTORUN
    By b52shut in forum Excel General
    Replies: 1
    Last Post: 12-15-2005, 04:55 AM
  5. [SOLVED] Autorun a macro
    By Paul Wisken in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-07-2005, 03:05 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