How to Unprotect All Sheets in a Workbook at Once
A workbook with 15 protected tabs means 15 trips through Review → Unprotect Sheet. Here are two ways to do the whole file in one go — a VBA macro if you have the password, and a browser tool if you don't.
On this page
Option A: Unprotect every sheet in your browser
If you don't have the password, or you just want the fastest route, a tool that edits the file's XML directly removes protection from all sheets in a single pass — including chart sheets and workbook-structure protection. There's nothing to repeat per tab.
Unlock the whole workbook at once
Drop the file, get every sheet unprotected in one download. Processed locally — nothing is uploaded.
Open the free unlocker →- Open the unlocker tool.
- Drag your workbook onto the drop zone.
- The tool removes protection from every worksheet and the workbook structure, then downloads the result. Done in one step regardless of how many tabs there are.
Option B: A VBA macro
If you already know the password and would rather stay inside Excel, a short macro loops through all sheets and unprotects each. This keeps everything in the app and is handy if you do it often.
- Press Alt + F11 to open the VBA editor (on Mac, Fn + Option + F11).
- Go to Insert → Module.
- Paste the code below, replacing
YourPasswordwith the real password. - Press F5 to run it.
Sub UnprotectAllSheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Unprotect Password:="YourPassword"
Next ws
MsgBox "All sheets unprotected."
End Sub
This macro needs the correct password — it can't bypass one you've forgotten. For that case, use Option A instead, which doesn't require the password at all.
Which should you use?
| Browser tool | VBA macro | |
|---|---|---|
| Needs the password? | No | Yes |
| Handles all sheets at once? | Yes | Yes |
| Removes workbook-structure lock too? | Yes | No (sheets only) |
| Anything to install or enable? | No | Macros must be enabled |
| File leaves your computer? | No | No |