How to prevent an Excel sheet from opening if macros are disabled
Preventing an Excel sheet from opening if macros are disabled is not supported by QLM.
Several Excel-specific techniques exist to accomplish this. This article describes one such technique.
In order to prevent users from viewing your workbook if macros are disabled, perform the following:
Create a new worksheet called "HiddenWorksheet"
Add two new Subs in your workbook as follows:
In the Workbook_Open Sub, call ShowSheets
In the Workbook_BeforeClose Sub, call HideSheets
Useful references:
You may also want to consider tools such as Unviewable+ to protect your VBA code.
Last updated