Protecting a worksheet
When you protect a worksheet, you prevent users from viewing or making changes to the contents, depending on the protection options you use:
- If you want to prevent users from viewing certain rows or columns, hide them before you protect the worksheet using the Hide command in the Format Rows or Columns submenu.
- If you want to prevent users from viewing formulas in particular cells:
-
- Select the cells whose formulas you want to hide.
- From the Format menu, select Cells.
The Format Cells dialog opens.
-
- Select the Protection tab.
-
- Check the Hidden checkbox.
- Click OK.
- If you want users to be able to enter or edit data into certain cells, but not others, you must unlock those cells you want them to be able to use before you protect the worksheet:
- Select the cells you want users to be able to edit.
- From the Format menu, select Cells.
The Format Cells dialog opens.
-
- Select the Protection tab.
-
- Uncheck the Locked checkbox.
- Click OK.
Once you’ve set the properties you want for the individual rows, columns, and cells in the worksheet, you can protect the worksheet. To do so:
- From the Tools menu, select Protection, and then select Protect Sheet from the submenu.
The Protect Sheet dialog opens.
- To protect the contents of the worksheet, with the exception of any cells you unlocked, make sure the Contents checkbox is checked.
- Selecting Objects protects graphics, charts, and comments in the worksheet.
- Selecting Scenarios prevents users from changing and deleting scenarios.
- To password-protect the worksheet, enter a password into the Password field.
You’ll be prompted to re-enter the password. Do so to confirm the password and click OK.
- Click OK.
To remove protection from a worksheet, select Protection and then Unprotect Sheet from the Tools menu. If you entered a password when you protected the sheet, you’ll be prompted to re-enter it now. Do so, and then click OK.
In this section, you learned:
|