+ Reply to Thread
Results 1 to 5 of 5

Force User to enable Macros

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    18

    Force User to enable Macros

    Hi All,
    I have a workbook with 2 modules to print either a quotation or an order which the user will have generated on a Data Input worksheet.
    I want to force the users to enable macros when they open the workbook, otherwise they cannot continue working.
    I have put some code I found on the web in a separate module. I need assistance as I cannot manage to call module 3.
    I uploaded a copy of the sample file for easy reference. I am sure that someone will help me, like in the past!

    Thanks
    Fieres
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Force User to enable Macros

    If macros are disabled.....doesn't matter what code you put in there, it isn't going to run.

    What I've done in the past is put a 'loading' screen in the workbook, hidden (very) all the other worksheets in the workbook and on the loading screen, in very big text are the words:

    "If you can still see this message after a few seconds of opening this workbook then your macros are disabled. You MUST enable macros and re-open this workbook to continue."

    And the workbook open event is then used to hide the loading screen and unhide all other sheets.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Force User to enable Macros

    I think your problem is that much of the code in module 3 are workbook events, and they need to be in the "ThisWorkbook" section of VBA, not a normal module. In VBA editor, double-click on "ThisWorkbook", and put the code there instead of a normal module.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    09-30-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Force User to enable Macros

    Thanks to all. It is solved & works gr8!

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Force User to enable Macros

    mvassallo, please remember to mark the thread as solved? Thanks in advance

+ 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] Force users to enable macros
    By bneed in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2016, 02:23 PM
  2. Cant hide worksheets after macros to force users to enable macros
    By Mboemoyo85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2015, 02:52 AM
  3. Force user to enable macros, only work if press save
    By Blokeman in forum Excel General
    Replies: 0
    Last Post: 03-09-2013, 10:25 PM
  4. Force User to Enable Macros - Issue with activating specific sheet afterwards...
    By aboveliquidice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2009, 04:27 PM
  5. force enable macros lag
    By FRIEL in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2009, 02:13 PM
  6. Force the user to enable the macro
    By karinos57 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2009, 06:16 PM
  7. Force to enable macros
    By Denys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2006, 09:30 AM

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