Results 1 to 25 of 25

Force enable macros (hiding sheets is not enough)

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-12-2019
    Location
    NYC
    MS-Off Ver
    MS 365
    Posts
    167

    Force enable macros (hiding sheets is not enough)

    Hi guys,

    I have an excel spreadsheet that requires macros to be enabled to work properly. I'm looking for a way to force users to enable macros in order to use the spreadsheet. Looking online, I see plenty of articles with the same approach, basically consisting of hiding all tabs and unhiding them via a macro once macros are activated (and hiding them again when workbook closes). My question to that approach is: what prevents the user from first opening the spreadsheet, activating the macros (hence unhiding all the sheets) then [break] macros and save the file like that. If you save and close the spreadsheet while the code is on break, the sheets won't be automatically hidden at close so we're back to square 1, aren't we? Am I missing something here?

    Is there a better approach? The same way you have events such as beforedoubleclick, beforeleftclick, etc, is there a way to run a macro before the break button is clicked?

    Overall, I would like to find a way for my spreadsheet not to be used when macros are not activated.

    Thanks a lot,
    Last edited by MagnusNovak; 04-16-2021 at 11:31 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Force User to enable Macros
    By mvassallo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2017, 08:44 AM
  2. [SOLVED] Force users to enable macros
    By bneed in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2016, 02:23 PM
  3. 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
  4. Need help with my force enable macros code being autosaved
    By mmazz365 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-04-2015, 11:39 AM
  5. force enable macros lag
    By FRIEL in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2009, 02:13 PM
  6. [SOLVED] Force to enable macros
    By Denys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2006, 09:30 AM
  7. How can force enable macros to be able to open my workbook?
    By kcdonaldson in forum Excel General
    Replies: 3
    Last Post: 12-05-2005, 02:20 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