The Tamer
Well-known Member
- Joined
- Jun 10, 2004
- Messages
- 520
I put this post in the Questions section, but then figured it wasn't a question... What do you think?
I have a spreadsheet that initiates security measures on openng my workbook - but of course, a user can bypass this by simply disabling macros on workbook open.
Here's my solution (if it has been said before I apologise!):
1. On the workbook you wish to protectcreate a "splash screen" on a blank page saying "You cannot use this sheet if you have disable macros"
Then in a " Sub Workbook_BeforeClose " macro, set all the sheets (apart from the Splash sheet) to " xlVeryHidden ".
2. In the " Private Sub Workbook_Open " part set the sheets to " visible "
This way all the sheets will be hidden once the workbook is closed, and if a user clicks " Disable Macro " on opening the workbook - he won't be able to see anything.
I have a spreadsheet that initiates security measures on openng my workbook - but of course, a user can bypass this by simply disabling macros on workbook open.
Here's my solution (if it has been said before I apologise!):
1. On the workbook you wish to protectcreate a "splash screen" on a blank page saying "You cannot use this sheet if you have disable macros"
Then in a " Sub Workbook_BeforeClose " macro, set all the sheets (apart from the Splash sheet) to " xlVeryHidden ".
2. In the " Private Sub Workbook_Open " part set the sheets to " visible "
This way all the sheets will be hidden once the workbook is closed, and if a user clicks " Disable Macro " on opening the workbook - he won't be able to see anything.