You cannot "break" a modern Excel worksheet password with a magic button — but you can often remove worksheet protection in minutes because Excel stores that particular password with weak, reversible encryption. The catch: this only works for sheet protection (the kind that stops editing cells), not for the password that encrypts the whole workbook file. If you can open the file and see the data but cannot edit it, the steps below usually work. If Excel asks for a password just to open the file, this guide will not help and you should go back to whoever created it.
What You'll Need
- A computer with Excel (Windows or Mac) and the file saved locally — not open from a shared drive or read-only email attachment.
- Permission to modify the file. Only remove protection from workbooks you own or have explicit permission to edit.
- A backup copy of the original file before you change anything.
- Optional: a zip tool (Windows built-in or macOS Archive Utility) if you want to try the XML method.
Step-by-Step
- Make a copy first. Right-click the file and choose Copy, then Paste it somewhere safe. Work only on the copy so you can start over if something goes wrong.
- Confirm what kind of password you are facing. Open the file. If you can see the cells but the ribbon shows most editing options greyed out and a banner says the sheet is protected, you have worksheet protection. If a dialog asks for a password before any content appears, that is file encryption and the steps below will not remove it.
- Try the obvious first. Click the Review tab and look for Unprotect Sheet. If the person who protected it used a blank password or a simple one you know, Excel will unlock it immediately. Labels can differ slightly by version and platform, but Review is where sheet protection lives on both Windows and Mac.
- Use the VBA immediate window method (Windows and Mac Excel). This is the fastest reliable route. Press Alt+F11 on Windows (Fn+Alt+F11 on some laptops) or Option+F11 on Mac to open the Visual Basic Editor. If the Project Explorer is not visible, open View > Project Explorer. Find your workbook in the list, right-click it, and choose Insert > Module. In the blank module, paste a short macro that loops through each worksheet and calls
ActiveSheet.Unprotectwith a guessed password, or simply clears protection with an empty string. Press F5 to run it, then close the editor and save. - If you are not comfortable writing VBA, use the XML route instead. Close Excel. Change the file extension from .xlsx to .zip (or use "Compress" on a copy). Open the zip and go into the xl > worksheets folder. Each sheet has an XML file. Open the one for the protected sheet in a plain text editor such as Notepad or TextEdit. Search for the tag
sheetProtection. Delete that entire self-closing tag. Save the file, put it back into the zip replacing the original, then rename the zip back to .xlsx. Open it in Excel — the sheet should now be editable. - Re-save under a new name. Once protection is removed, use File > Save As and give the file a new name so the original stays untouched.
- Reapply your own protection if needed. If you want to keep other people from editing, go back to Review > Protect Sheet and set a password you will remember. Store it in a password manager.
Common Mistakes
- Confusing sheet protection with file encryption. A workbook that will not open at all is encrypted; the methods above will not touch it, and pretending otherwise wastes hours.
- Editing the original file. Always work on a copy — a corrupted zip or a bad macro can make the workbook unopenable.
- Forgetting to remove the tag completely. In the XML method, leaving a stray slash or partial tag breaks the file. Delete the whole
<sheetProtection ... />element, including the closing slash and angle bracket. - Renaming the zip back with the wrong extension. Windows may hide extensions, so "file.xlsx.zip" becomes "file.xlsx.zip.xlsx". Turn on file extensions in File Explorer's View tab before you start.
- Running a macro on a protected workbook that is open read-only. Close and reopen it with write access first, or the macro will fail silently.
Tips
- Keep a plain-text note of any password you set — losing it later means repeating this whole process.
- If the workbook has many sheets, loop through all of them in one macro rather than unprotecting each by hand.
- For shared files, ask the owner first. Removing protection from a document you do not own may breach policy or law depending on where you work.
- Protection in Excel is a speed bump, not real security. Do not rely on it to hide sensitive data; use file encryption or a password-protected archive instead.
Troubleshooting
Excel says the file is corrupt after the XML edit. You probably saved the XML with the wrong encoding or left a fragment of the tag. Restore your backup copy and try again, making sure you delete the entire element and save as plain UTF-8.
The macro runs but nothing changes. Check that the workbook is not open read-only and that the sheet you are targeting is the active one. Some macros only act on the active sheet; loop through Worksheets to cover all of them.
Unprotect Sheet is greyed out. The workbook may be marked as final or opened from a read-only location. Use File > Info and look for a Protect Workbook option, or copy the file to your desktop and reopen it.
You still cannot edit after unprotecting. The workbook itself (not the sheet) may be protected. Check Review > Protect Workbook and unprotect that too.
You are on Excel for the web. The browser version does not offer the VBA editor, so use the desktop app for these steps, or ask the file owner to remove protection.
Frequently Asked Questions
Does this work on the password that opens the file?
No. File-open passwords use strong encryption. The methods here only remove worksheet protection from a file you can already open.
Is removing sheet protection legal?
Only on files you own or have permission to modify. Removing protection from someone else's document without consent can breach policy or law.
Will the XML trick work on .xls files?
No. The zip-and-XML method needs the modern .xlsx format. For older .xls files, use the VBA method instead.
Can I do this on a Mac?
Yes. The VBA editor and the zip method both work on macOS Excel; the keyboard shortcut to open the editor is Option+F11.
Does unprotecting change my data?
No. Removing protection only unlocks editing; cell contents, formulas and formatting stay the same.
Why does Excel still ask for a password after I unprotect?
You likely removed sheet protection but left workbook protection or file encryption in place. Check Review > Protect Workbook and the file's open password separately.