+ Reply to Thread
Results 1 to 5 of 5

Run Macro on Open

  1. #1
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Run Macro on Open

    Hi

    the Code either does not run when the Workbook is open orit does run but the code does not Protect all the Sheets in the workbook.

    What is wrong ?

    Thank You

    Allister


    Please Login or Register  to view this content.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: Run Macro on Open

    Is the code in ThisWorkbook Module
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    07-10-2020
    Location
    New Zealand
    MS-Off Ver
    365 personal
    Posts
    302

    Re: Run Macro on Open

    Hi

    No teh
    Allister macro is in a module

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: Run Macro on Open

    So, if you want it to work...Put the code in ThisWorkBook Module

    Or for std module use this...
    Please Login or Register  to view this content.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: Run Macro on Open

    I assume that as this is marked as solved, your original query has been answered...

    As a courtesy, a response to a solution is generally a sign of confirmation...So others too, can learn...

    Thanks for adding to my reputation +

+ 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] Macro to open workbook with a suffix (need help to check if file is already open)
    By rossi_69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2017, 11:03 AM
  2. Replies: 8
    Last Post: 11-25-2015, 08:14 PM
  3. Replies: 1
    Last Post: 12-17-2012, 03:41 PM
  4. Create macro to open selectable list then open file
    By mattmurdock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2012, 07:10 PM
  5. Excel Macro to open explorer, open csv file
    By Trubble in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2009, 04:54 AM
  6. Open workbook macro- find correct month to open?
    By buzzharley in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-07-2006, 11:30 PM
  7. [SOLVED] open up an excel program with an auto open macro
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2005, 12: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