+ Reply to Thread
Results 1 to 3 of 3

Can't work out how to run multiple macro's on workbook open

  1. #1
    Registered User
    Join Date
    05-16-2015
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    19

    Can't work out how to run multiple macro's on workbook open

    Hi everyone,

    Still a novice at VBA lol, I have the below code, could someone tell me how i make it so that the first 2 macro's run on workbook open in order of its appeareance in the code below? so far on workbook open only 1st macro runs but not the 2nd and i am assuming its because o i have an end sub in the 1st macro.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Can't work out how to run multiple macro's on workbook open

    Only have in the workbook Module the following and put the other 2 codes in another sub.
    Then you can put something like and do them in order.
    Please Login or Register  to view this content.
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Can't work out how to run multiple macro's on workbook open

    Hello,

    call the PasswordProtect routine (and any other sub) from within the Worksheet_Open routine:

    Please Login or Register  to view this content.
    cheers, teylyn

+ 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. [SOLVED] Getting a Macro to work on Multiple sheets with a workbook
    By rplusone in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-06-2013, 11:39 PM
  2. How do I open multiple excel workbook with Macro
    By Oyeski in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2013, 05:36 PM
  3. Replies: 0
    Last Post: 06-12-2013, 09:05 AM
  4. Multiple workbook open and run macro
    By tone640 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-29-2011, 01:53 PM
  5. How to mak a macro work when I open a new workbook?
    By mrdata in forum Excel General
    Replies: 1
    Last Post: 01-07-2005, 06:06 AM

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