Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code in ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Call ApplySecurity End Sub Private Sub Workbook_Open() Call ApplySecurity End Sub I have this in a Module: Sub ApplySecurity() ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True ActiveSheet.EnableSelection = xlNoSelection End Sub I just noticed that whether macros are enabled or disabled, a user can just click Tools Protection Unprotect and make any changes they want; Excel doesnt even ask me for a password. Did I miss something here? Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to setup a excel sheet to be protect after save and close file | Excel Discussion (Misc queries) | |||
Can I protect a document and still open / close groups | Excel Worksheet Functions | |||
Auto Open, Refresh, Save, Close | Excel Discussion (Misc queries) | |||
auto open, auto close | Excel Programming | |||
auto close while MsgBox is open | Excel Programming |