Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I need some help in programming my workbook to not open if the user tries to open with macros disabled. As you know, the user can set the security level to "high", "medium", or "low". I would like my workbook to be able to react in the cases where the level is set to "high" or "medium" because in these respectively, any macro will be automatically disabled or the user prompted to opt to either enable or disable all macros. So, should the system automatically disable macros or the user ultimately decide to disable macros when prompted, I need my workbook to react by quickly closing (or not opening at all). My idea was to check what security level is in place: if set to "high" then force the workbook to immediately close again; but if set to "medium" then to capture the user's response event when the system prompts the user, and close the workbook if the choice was to disable macros. Having taken 20mins to write the above succinctly, it has now occured to me that if the system or user disables macros then my code to close the workbook won't work anyway (!!)....or will it. I guess I'm looking for any ideas - or confirmation that it simply can't be done :[ Thanks and appreciation if you're still with me! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Enable/Disable Macros dialogue box when user opens Excel | Excel Discussion (Misc queries) | |||
How can I disable macros after the initial open? | Excel Discussion (Misc queries) | |||
Open Worbook and Disable Macros | Excel Discussion (Misc queries) | |||
Open Worbook and Disable Macros | Excel Programming | |||
Disable Macros when opening workbook | Excel Programming |