To prevent a user from accidentally or deliberately changing, moving, or deleting important data, you can lock cells and protect them. Locking cells takes two steps: adding the Lock formatting to the cells, and then turning on protection of the sheet.
To lock cells
-
Select the cells that you want to lock.
-
On the Format menu, click Cells, or press + 1.
-
Click the Protection tab, and then make sure that the Locked check box is selected.
Note: By default, all cells have the Locked formatting unless you previously turned it off.
-
If any cells should be unlocked, select them. Press + 1. Then click to clear the Locked check box so that it isn't selected.
-
On the Review tab, click Protect Sheet or Protect Workbook. Type a password for the sheet or workbook, and then retype the password under Verify.
Note: The password is optional. If you do not supply a password, any user can unprotect the sheet and change what was protected. If you do enter a password, make sure that you choose a password that is easy to remember, or write it down and keep it in a safe place. If you lose the password, you can't access the protected parts on the sheet.
-
If you don't want people to select locked cells, click to clear the Select locked cells check box.
-
If you want people to be able to select and fill out unlocked cells, click to select Select unlocked cells.
-
Before you click OK to finish, you might want people to do other things to the locked cells, like select them or format them. If so, under Allow users of this sheet to, choose the elements that you want people to be able to select or change.
-
Click OK.
To unlock cells
-
You may need to temporarily turn off protection so that you can unlock cells. On the Review tab, click Unprotect Sheet or Unprotect Workbook. Then type the password.
-
Select the cells that you want to unlock.
-
Press + 1. Then click to clear the Locked check box so that it is not selected.
-
If there are other cells that still need to be locked, on the Review tab, click Protect Sheet or Protect Workbook. Then type a password for the sheet, and verify it by typing it again.
No comments:
Post a Comment