+ Reply to Thread
Results 1 to 4 of 4

NAMED Macro Autorun

  1. #1
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    NAMED Macro Autorun

    How do I make one or more NAMED macros autorun on workbook-open?
    Thanks.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: NAMED Macro Autorun

    Under Thisworkbook module there is an event macro called "Workbook_Open"

    you can call any macro within any other macro it could look like something like



    Please Login or Register  to view this content.
    This will first run macro 1 and then macro 2.

    the Call in front of the macro name is optional, you can also only do "Macro1" and it will run too. But I like to put Call in for readability

  3. #3
    Forum Contributor
    Join Date
    01-20-2014
    Location
    Greece
    MS-Off Ver
    20 yr. old Excel 2002!
    Posts
    710

    Re: NAMED Macro Autorun

    Thank you so much!

    In which section of the editor does this code go?
    1. This workbook
    2. New module
    3. Any module

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: NAMED Macro Autorun

    that goes in the ThisWorkbook

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