Locked check boxes and option buttons

tweek

Board Regular
Joined
Jun 16, 2006
Messages
104
I have a sheet that i´m trying to protect and allow users to edit certain ranges, when doing so I can´t unprotect check boxes and option buttons. The cell that they are placed in are unprotected and so are the cells linked to the check boxes and option buttons.

Even if I allow to edit the whole sheet as an range I still can't click those boxes without getting the protection warning.

Any ideas?

Thank you.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Not sure if I fully understand what it is you're trying to do. If the cells linked to the check boxes and option buttons are unprotected you can use the following vba.

Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
ActiveSheet.Protect
Else If CheckBox1.Value = False Then
ActiveSheet.Unprotect
End If
End Sub

For Option Boxes just replace CheckBox1 with OptionBox1. You may also have to change the number depending on what yours are.

The code goes on the sheets you plan to use it on. Click on the sheet tab, then view code.

Let me know if this helps.
 
Upvote 0
I found a general solution before this one was posted. I was only trying to use option buttuns and check boxes in a protected sheet but it kept locking those boxes and buttons too. My solution was to select those check boxes, option buttons and the linked cells and go to HOME --> CELLS --> FORMAT--> LOCK CELL. And then do the standart Allow users to edit and protect the sheet. Somhow that unprotected the buttons and boxes
 
Upvote 0

Forum statistics

Threads
1,223,157
Messages
6,170,419
Members
452,325
Latest member
BlahQz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top