Sub topic 18
Protecting the Workbook Structure
This chapter assumes you can add, rename, move, and hide worksheets, and that you know the difference between a workbook and a worksheet. You will learn how to lock the arrangement of sheets so others cannot change it by accident.
What structure protection does
A workbook contains worksheets. Protecting the workbook structure stops people from changing that set of sheets. While it is on, a user cannot:
- Add, delete, or rename sheets
- Move or copy sheets
- Hide sheets, or unhide sheets that are already hidden
Structure protection does not lock cell contents. Someone can still type in cells and edit formulas unless you also protect each worksheet. These are two separate features.
| Feature | What it locks | Where to find it |
|---|---|---|
| Protect Workbook Structure | Adding, deleting, renaming, moving, hiding sheets | Review tab, Protect group |
| Protect Sheet | Editing cells, formatting, and other actions on one sheet | Review tab, Protect group |
Turning it on
- Open the workbook.
- Select the Review tab.
- In the Protect group, choose Protect Workbook. In some versions the button is named Protect Structure and Windows.
- Make sure Structure is checked.
- Type a password if you want one. This is optional.
- Select OK. If you entered a password, Excel asks you to type it again.
You can also reach it from the File tab: choose Info, then Protect Workbook, then Protect Workbook Structure.
How to recognize it
When structure protection is on, the right-click menu on a sheet tab shows Insert, Delete, Rename, Move or Copy, and Hide in gray. The Protect Workbook button on the Review tab looks highlighted. You can still switch between sheets by clicking the tabs.
Turning it off
Select Review, then Protect Workbook again. If the workbook has a password, Excel asks for it. Once you enter it, the commands become available again.
Common errors
- Forgetting the password. Excel cannot recover it for you. Store the password somewhere safe before you apply it.
- Expecting cells to be locked. Structure protection only governs the sheets themselves. Use Protect Sheet for cell contents.
- Treating it as security. The password is a deterrent against accidents. It is not strong protection against a determined person. Do not rely on it for confidential data.
- Wondering why Hide is grayed out. Check whether the workbook structure is protected before looking for other causes.
Exercise
A colleague opens your protected workbook and wants to rename the sheet "Sheet3" to "Totals". The Rename command is grayed out. Which tab and button should they use to fix this, and what might Excel ask for?
Show answer
They should go to the Review tab and choose Protect Workbook in the Protect group to turn off structure protection. If a password was set, Excel asks them to enter it. After that, Rename becomes available.
Exercise
You protect the workbook structure without protecting any worksheet. Can a user still type a new value into cell B4 on a sheet? Explain why.
Show answer
Yes. Structure protection only controls the sheets (add, delete, rename, move, hide). It does not lock cells. To prevent edits to cells, you must also use Protect Sheet on that worksheet.