LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Cause workbook to fail to open if user opts to disable macros

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable Macros dialogue box when user opens Excel David Excel Discussion (Misc queries) 2 August 23rd 06 02:21 PM
How can I disable macros after the initial open? Troy Excel Discussion (Misc queries) 4 February 13th 06 03:38 PM
Open Worbook and Disable Macros DMc2005 Excel Discussion (Misc queries) 4 October 1st 05 07:23 PM
Open Worbook and Disable Macros DMc2005 Excel Programming 4 October 1st 05 07:23 PM
Disable Macros when opening workbook Rob[_21_] Excel Programming 7 November 12th 04 09:22 AM


All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"