Lock or unlock specific areas of a protected worksheet
Show All
When you protect a worksheet, all cells are locked by default, which means that they cannot be edited. To enable cells to be edited while leaving only some cells locked, you can unlock the cells and then lock only specific cells and ranges before you protect the worksheet. You can also enable specific users to edit specific ranges in a protected worksheet.
What do you want to do?
- Lock only specific cells and ranges in a protected worksheet
- Unlock ranges on a protected worksheet for users to edit
Lock only specific cells and ranges in a protected worksheet
- If the worksheet is protected, do the following:
- On the Review tab, in the Changes group, click Unprotect Sheet.

NOTE Protect Sheet changes to Unprotect Sheet when a worksheet is protected.
- If prompted, type the password to unprotect the worksheet.
- Select the whole worksheet by clicking the Select All button.

- On the Home tab, in the Font group, click the Format Cell Font dialog box launcher
.

Keyboard shortcut You can also press CTRL+SHIFT+F or CTRL+1.
- On the Protection tab, clear the Locked check box, and then click OK.
NOTE This unlocks all the cells on the worksheet when you protect the worksheet.
- In the worksheet, select just the cells that you want to lock.
- On the Home tab, in the Font group, click the Dialog Box Launcher
next to Font.
Keyboard shortcut You can also press CTRL+SHIFT+F or CTRL+1.
- On the Protection tab, select the Locked check box, and then click OK.
- On the Review tab, in the Changes group, click Protect Sheet.

- In the Allow all users of this worksheet to list, select the elements that you want users to be able to change.
- In the Password to unprotect sheet box, type a password for the sheet, click OK, and then retype the password to confirm it.
NOTES
- The password is optional. If you do not supply a password, then any user can unprotect the sheet and change the protected elements.
- Make sure that you choose a password that is easy to remember, because if you lose the password, you cannot gain access to the protected elements on the worksheet.
Unlock ranges on a protected worksheet for users to edit
IMPORTANT To give specific users permission to edit ranges in a protected worksheet, your computer must be running Microsoft Windows XP or later, and your computer must be on a domain. Instead of using permissions that require a domain, you can also specify a password for a range.
- Select the worksheet that you want to protect.
- On the Review tab, in the Changes group, click Allow Users to Edit Ranges.

NOTE This command is available only when the worksheet is not protected.
- Do one of the following:
- To add a new editable range, click New.
- To modify an existing editable range, select it in the Ranges unlocked by a password when sheet is protected box, and then click Modify.
- To delete an editable range, select it in the Ranges unlocked by a password when sheet is protectedbox, and then click Delete.
- In the Title box, type the name for the range that you want to unlock.
- In the Refers to cells box, type an equal sign (=), and then type the reference of the range that you want to unlock.
TIP You can also click the Collapse Dialog button, select the range in the worksheet, and then click theCollapse Dialog button again to return to the dialog box.
- For password access, in the Range password box, type a password that allows access to the range.
NOTE Specifying a password is optional when you plan to use access permissions. Using a password allows you to see user credentials of any authorized person who edits the range.
- For access permissions, click Permissions, and then click Add.
- In the Enter the object names to select (examples) box, type the names of the users who you want to be able to edit the ranges.
TIP To see how user names should be entered, click examples. To verify that the names are correct, click Check Names.
- Click OK.
- To specify the type of permission for the user who you selected, in the Permissions box, select or clear theAllow or Deny check boxes, and then click Apply.
- Click OK two times.
TIP If prompted for a password, type the password that you specified.
- In the Allow Users to Edit Ranges dialog box, click Protect Sheet.
- In the Allow all users of this worksheet to list, select the elements that you want users to be able to change.
- In the Password to unprotect sheet box, type a password, click OK, and then retype the password to confirm it.
NOTES
- The password is optional. If you do not supply a password, then any user can unprotect the worksheet and change the protected elements.
- Make sure that you choose a password that you can remember, because if you lose the password, you cannot gain access to the protected elements on the worksheet.
NOTES
- If a cell belongs to more than one range, users who are authorized to edit any of those ranges can edit the cell.
- If a user tries to edit multiple cells at once and is authorized to edit some but not all of those cells, the user will be prompted to select and edit the cells one by one.













