Forgot your sheet password? Read this first.
Worksheet protection is not a security feature — it stops accidental edits, not deliberate ones. Microsoft cannot recover a forgotten worksheet password.
What are you trying to protect?
| Your Goal | Use This Feature | Guide Available? |
|---|---|---|
| Prevent editing cells or deleting formulas | Worksheet Protection | ✅ This Page |
| Prevent opening the file | File Encryption (Password to Open) | ❌ See File Encryption |
| Prevent adding/deleting/moving sheets | Workbook Protection | ❌ See Workbook Protection |
| Prevent copying/pasting data | Worksheet Protection + VBA | ⚠️ Advanced Section Below |
Learn the Correct Method
How to Protect a Worksheet (3 Steps)
Follow these steps carefully to protect your worksheet without locking yourself out of editable cells.
🔓 Unlock the Cells You Want Editable (KEY STEP!)
Before protecting, decide which cells users should be able to edit. Select those cells first.
Windows: Select cells → Right-click → Format Cells → Protection → Uncheck "Locked"
Mac: Select cells → Right-click (or Control+click) → Format Cells → Protection → Uncheck "Locked"
🛡️ Protect the Sheet
Now apply protection to the entire worksheet.
Windows: Go to Review tab → Protect Sheet
Mac: Go to Review tab → Protect Sheet
In the Protect Sheet dialog:
- Enter a password (optional — leave blank to prevent accidental edits only)
- Check/uncheck allowed actions (Select locked cells, Select unlocked cells, etc.)
- Click OK
✅ Test Your Protection
Always test before sharing!
Try to edit one of the locked cells — you should see a message like:
Try to edit an unlocked cell — it should allow editing normally.
Common Mistakes & How to Fix Them
Avoid these pitfalls that many Excel users encounter:
❌ Wrong: Protect without unlocking cells first
All cells become locked, including the ones you wanted editable. Users can't type anywhere!
Fix: Unprotect → Select editable cells → Format Cells → Uncheck "Locked" → Re-protect
✅ Correct: Unlock editable cells first, then protect
Only the cells you selected remain editable. Everything else is protected.
❌ Wrong: Forgetting your password
No recovery option exists. If you forget the password, you cannot unprotect the sheet.
Fix: Always use a password manager or save passwords securely.
✅ Correct: Save password in a password manager
Use tools like 1Password, Bitwarden, or your browser's built-in password saver.
❌ Wrong: Thinking protection = security
Anyone can remove worksheet protection in seconds using free online tools.
Fix: For sensitive data, use File → Info → Protect Workbook → Encrypt with Password.
✅ Correct: Use file encryption for sensitive data
File encryption requires a password to even open the file — much more secure than sheet protection.
Advanced Tips & Tricks
👁️ Hide Formulas (Not Just Lock Them)
Select cells with formulas → Format Cells → Protection → Check both "Locked" AND "Hidden". Now users see the result but not the formula in the formula bar.
✓ Allow Specific Actions
In the Protect Sheet dialog, you can allow users to:
- Sort data (Format → Sort)
- Use AutoFilter
- Edit objects (charts, shapes)
- Edit scenarios
Uncheck all options if you want maximum protection.
🖥️ Allow Users to Edit Specific Ranges
Go to Review → Allow Users to Edit Ranges to create named ranges that multiple users can edit, each with their own password.
📱 Excel Online Limitations
In Excel Online, you can protect/unprotect sheets, but you cannot customize which actions are allowed. All protection is all-or-nothing.
🔒 VBA: Programmatically Protect/Unprotect
Use this macro to protect all sheets in a workbook:
Dim ws As Worksheet
For Each ws In Worksheets
ws.Protect Password:="yourpassword"
Next ws
End Sub
About This Guide
Worksheet protection stops accidental edits, not determined ones. This page separates what it does and doesn't do, walks the unlock-then-protect sequence, and flags the mistakes that lock people out of their own sheets.
Frequently Asked Questions
Mastered Worksheet Protection? Level Up!
Unprotect Worksheet
Forgot your password? Learn 3 safe methods to unprotect an Excel sheet without losing data.
Learn More →Excel Formulas Guide
Now that your formulas are safe, learn advanced Excel functions to boost your productivity.
Browse Excel Guides →Encrypt Excel Files
For sensitive data, learn how to password-protect entire Excel files (not just sheets).
Security Guide →Continue Exploring
Sources & References
This guide was written and fact-checked against Microsoft's official Excel documentation.
Disclaimer: This guide is for informational and educational purposes only. Always back up your files before making changes. Last Updated: August 18, 2026.