- slide 1 of 2
Strategy: After unlocking all cells, use the Edit – Go To – Special dialog to select only the cells with formulas and lock just those cells.
By default, all cells in the worksheet start with their Locked property set to TRUE. You don’t realize this until you turn on protection for the first time. The first step is to unlock all of the cells.
1) Select all cells with Ctrl+A. From the menu, select Format – Cells.
Click on the Protection tab. As shown in Fig. 609, you will see that
the Locked option is chosen.
2) Uncheck the Locked box. Choose OK to dismiss the Format Cells dialog.
3) You should still have all of the cells highlighted. From the menu, select Edit – Go To. On the Go To dialog, choose the Special button in the lower left corner, as shown in Fig. 610.
4) On the Go To Special dialog box, choose the option button for Formulas, as shown in Fig. 611.
5) Choose OK to close the Go To Special dialog. As shown in Fig. 612, you will see that only the cells with formulas are selected.
6) From the menu, select Format – Cells. On the Protection tab, choose the Locked checkbox. This will lock only the selected cells, which are the formula cells.
7) The final important step is to enable protection for the sheet. If you miss this final step, you can still accidentally overwrite your formulas. From the menu, select Tools – Protection – Protect Sheet to display the Protect Sheet dialog, as shown in Fig. 613.
Now, if you accidentally try to enter something in a formula cell, Excel will warn you, as shown in Fig. 614.
Summary: Use the Go To Special dialog to select only the formula cells to protect just those cells. Remember to protect the sheet from overwriting.
Commands Discussed: Format – Cells – Protection; Edit – Go To Special