Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Why don't you post your code.
-- 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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Without a crystal ball, it's tough to know why your code doesn't do what you
want. Please post it and then we can assist. Barb Reinhardt "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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() As ALWAYS, post YOUR code for comments and suggestions. -- Don Guillett Microsoft MVP Excel SalesAid Software "Wanna Learn" wrote in message ... 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 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I see you've already posted this before and have an answer. I realize the
web interface is having issues, but please verify that your question hasn't been answered before posting again. "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 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Feb 8, 12:36*pm, 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 What happened to the CheckBox? |
#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 |
Reply |
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) |