
Sheet protection stops accidental damage — someone overwriting a formula or deleting a column. It is not strong security, but used correctly it makes shared files far more robust.
In this article
Step 1: unlock the input cells
Every cell is “Locked” by default, but locking only takes effect when the sheet is protected. So first select the cells people should edit → Ctrl+1 → Protection → untick Locked. Give them a light yellow fill so users know where to type.
Step 2: protect the sheet
Review → Protect Sheet. Choose what users may still do — select cells, sort, use AutoFilter, format columns — and optionally set a password.
Step 3: protect the workbook structure
Review → Protect Workbook prevents adding, deleting, renaming or unhiding sheets. Useful when hidden calculation sheets must stay hidden.
Hide formulas
Select formula cells → Format Cells → Protection → tick Hidden, then protect the sheet. The results show, the formula bar stays empty.
Macros and protected sheets
ws.Protect Password:="ops", UserInterfaceOnly:=True ' macros may still edit
Run it in Workbook_Open, because UserInterfaceOnly is not saved with the file.