Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is a minimal sample
Private Sub CheckBox1_Click() With CheckBox1 If .Caption = "Protect" Then ActiveSheet.Protect .Caption = "Unprotect" Else .Caption = "Protect" ActiveSheet.Unprotect End If End With End Sub which I attached to a Control Toolbox checkbox -- If this helps, please click the Yes button Cheers, Shane Devenshire "Wanna Learn" wrote: Hello I want to create a checkbox that when the box is checked rows 1 thru 70 are protected and when the box is unchecked worksheet is unprotected. I created a macro to protect the sheet, then I created a macro to unprotect the sheet . I combined both macros but it does not toggle. Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect, unprotect | Excel Discussion (Misc queries) | |||
Protect/unprotect all sheets at once? | New Users to Excel | |||
Protect / unprotect function | Excel Worksheet Functions | |||
Protect-Unprotect all the sheets | Excel Worksheet Functions | |||
Is there any way that you can protect or unprotect a group of wor. | Excel Discussion (Misc queries) |