Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Janet
ActiveSheet.Unprotect Password:="drowssap" ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="drowssap" You don't say what your problem is. Is it with changing the data or the protection/unprotection ? Regards Trevor "janet" wrote in message ... I am working in a protected worksheet and when a radio button is selected, it should unprotect the Sheet, Change values in Cells and re-protect. I can't get the syntax correct. I thought it should be ActiveSheet.Unprotect Password:="password" Then select the range, change and re-protect. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Getting the Error Message
Runtime Error 1004 Unprotect Method of Worksheet class failed. -----Original Message----- Janet ActiveSheet.Unprotect Password:="drowssap" ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="drowssap" You don't say what your problem is. Is it with changing the data or the protection/unprotection ? Regards Trevor "janet" wrote in message ... I am working in a protected worksheet and when a radio button is selected, it should unprotect the Sheet, Change values in Cells and re-protect. I can't get the syntax correct. I thought it should be ActiveSheet.Unprotect Password:="password" Then select the range, change and re-protect. . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are you running xl97?
If yes, add: activecell.activate at the top of your code. (For controls that have a .takefocusonclick property, you can change that to false.) (This is a bug that was fixed in xl2k.) janet wrote: Getting the Error Message Runtime Error 1004 Unprotect Method of Worksheet class failed. -----Original Message----- Janet ActiveSheet.Unprotect Password:="drowssap" ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="drowssap" You don't say what your problem is. Is it with changing the data or the protection/unprotection ? Regards Trevor "janet" wrote in message ... I am working in a protected worksheet and when a radio button is selected, it should unprotect the Sheet, Change values in Cells and re-protect. I can't get the syntax correct. I thought it should be ActiveSheet.Unprotect Password:="password" Then select the range, change and re-protect. . -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Protection Best Practice: AKA: Real Sheet Protection | Excel Discussion (Misc queries) | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
WS Protection: Different Levels of Protection on Different Ranges | Excel Discussion (Misc queries) | |||
Cell Protection vs. Worksheet Protection | Excel Discussion (Misc queries) | |||
Worksheet protection is gone and only wokbook protection can be se | Excel Discussion (Misc queries) |