check box problem

bakerman

Board Regular
Joined
Sep 9, 2005
Messages
188
I have a collection of six check box's on a spreadsheet. Each runs a different macro when selected and everything works fine. My problem starts when I protect the worksheet. I have unlocked each check box and also the cells which the check box's are in front of but I stil get the cell your trying to change is protected warning. Anyone got any ideas how to overcome this problem ?
 

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
The macro you are running maybe trying to change a protected cell, hence causing the error
 
Upvote 0
Try adding an Unprotect Statement to the beginning of each macro, and a protect statement at the end of each macro.

Unprotect the sheet at the beginnig of each macro with this :

ActiveSheet.Unprotect

Protect the sheet at the end of each macro with this :

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlNoSelection

You may have to modify the protection code to suit your nees, that code will have ALL options Unchecked in the protection options.
 
Upvote 0

Forum statistics

Threads
1,214,868
Messages
6,122,005
Members
449,059
Latest member
mtsheetz

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