Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Functioning Check Boxes in a Protected Worksheet.

Functioning Check Boxes in a Protected Worksheet

by Allen Wyatt
(last updated July 7, 2016)

8

Dave developed a worksheet that uses yes/no check boxes, combined with a true/false statement to update another cell. He wants to protect the worksheet, but still be able to update the check boxes, but this doesn't seem to be possible. When he protects the worksheet, the check boxes cannot be changed.

The thing to remember in working with check boxes (from the Controls group on the Developer tab of the ribbon) is that there are two things you need to explicitly unprotect: the check box itself and the cell to which the check box is linked. To unprotect the check box, right-click on it and choose Format Control. Excel displays the Format Control dialog box. On the Protection tab, make sure the Locked check box is cleared.

Check boxes are also linked to specific cells in a worksheet. (See the Control tab of the Format Control dialog box or, if you are using ActiveX controls, the LinkedCell property.) To unprotect the cell to which the check box is linked, select the cell and press Ctrl+Shift+F to display the Format Cells dialog box. On the Protection tab, make sure the Locked check box is cleared.

Now you can protect your workbook as you normally would, and the check boxes should work. The reason that you need to unprotect the cell to which the check box is linked is because the contents of the cell needs to be able to change as the status of the check box is modified. If the cell is not unprotected, then the contents cannot change and so the check box cannot change.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8112) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Functioning Check Boxes in a Protected Worksheet.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Returning Zero when a Referenced Cell is Blank

Reference a cell in a macro, and if that cell is blank Excel normally equates that to a zero value. What if you don't want ...

Discover More

Renaming a File

Need to rename a file in a macro? It's easy to do using the Name command, as discussed in this tip.

Discover More

Selecting Fonts for a Chart

When formatting a chart, you might want to change the characteristics of the font used in various chart elements. This can be ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Hiding and Protecting Columns

Want to hide certain columns within a worksheet so the contents are not visible to others? The answer lies in formatting the ...

Discover More

Preventing Someone from Recreating a Protected Worksheet

When you share a protected workbook with other people, you may not want them to get around the protection by creating a new ...

Discover More

Locking Worksheet Names

Want to stop other people from changing the names of your worksheets? You can provide the desired safeguard by using the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is seven less than 7?

2015-12-17 19:06:20

Tom

Thank you, this was a great help.


2015-06-11 14:09:22

DB$HB

I want the opposite of this...I want the entire sheet protected and not editable included the check boxes but it's not working! How do I do that? I don't want anything changed on the doc.


2015-06-04 03:10:04

Avinash

Yes thanks for the post. I was looking many articles and found solution on this one. I had protected sheet, Protected cell ranges (colum) but the activ x boxes linked to these cell were not editable.
Now I made them using "To unprotect the cell to which the check box is linked, select the cell and press Ctrl+Shift+F to display the Format Cells dialog box. On the Protection tab, make sure the Locked check box is cleared."


2015-01-06 18:25:17

Peter Atherton

@Nathan

to "Sort" correctly staying ..

As mentioned in Allen's article, checkboxes are linked to a cell - not the cells data. I would consider using a column of text.
The letters a & r produce a tick and an x respectively when formatted with the Webdings font. As this is data there's not problem sorting.


2015-01-04 10:01:50

Nathan

Looking to Utilize Checkboxes (Written By VBS Code) within a "Filtered" spreadsheet. The Checkboxes (checked or unchecked) need to "Sort" correctly staying with the correct row of information that it is connected with. Unfortunately I have been unsuccessful getting the actual checked or unchecked box to follow correctly when utilizing the "Filter Drop Down" on any of the vertical columns. Generally I sort by "DATE" which is a vertical column within the spreadsheet.

Would really like some direction here if this is possible. Please let me know if you need greater clarification.

Thank you - Nathan


2014-09-10 13:37:05

BillH

I agree that you need to Unlock the linked cell where changes take place but the checkbox, itself, does not need to be Unlocked. I also make the linked cell <Hidden> to minimize what others can see since the linked cell can't be locked in a Protected Worksheet.


2014-06-18 17:20:28

Irving

Great Solution!!! It was very useful!


2013-12-13 11:14:38

T.O.

Thank you for this! I needed to know that the cell linked to my option boxes needed to be unprotected..this is the first search I found telling me that. Thank you!


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.