Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Protected Sheet Password Recovery: How-To

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The short answer: Excel does not offer a built-in way to recover a forgotten sheet password, and the official route is to use a password recovery service or, if you have the rights to the file, to remove protection with a short VBA macro or by editing the file's internal XML. None of these methods "crack" a password you do not know; they either recover it with specialized tools or strip the protection so you can set a new one. Before you start, make sure you own the file or have explicit permission from its owner to modify it, and keep a backup copy of the original workbook.

What You'll Need

  • A copy of the protected workbook (never work on the only copy).
  • Microsoft Excel for Windows or Mac, or a zip tool that can open .xlsx files if you plan to edit the XML.
  • For the VBA method: Excel with macros enabled and the workbook saved as .xlsm or .xlsx (the macro runs from a separate workbook).
  • For password recovery: a reputable password recovery tool that supports Excel sheet protection, installed from its official site.

Step-by-Step

  1. Confirm what is protected. Open the workbook. If you can view the data but cannot edit cells, the sheet is protected. If you cannot open the file at all, it is encrypted with an open password, which is a different problem and generally cannot be removed without the password. The steps below cover sheet protection only.
  2. Make a backup. Copy the file to another folder or drive. Every method below modifies the file, and a failed attempt can leave it unusable.
  3. Try the obvious first. Check whether the password is blank (just click OK when prompted), or ask the person who created the file. Many sheets are protected with no password at all, and unprotecting is then a single click via Review > Unprotect Sheet.
  4. Use the VBA method (Windows and Mac). Open a new blank workbook. Press Alt+F11 (Windows) or Fn+Option+F11 (Mac) to open the Visual Basic Editor. Insert a new module (Insert > Module), paste a short macro that loops through possible passwords and calls ActiveSheet.Unprotect, then run it. Point the macro at the protected workbook by opening that file first and referencing its sheet. This works because older sheet protection stores a weak hash; it does not work on workbooks saved with modern strong encryption.
  5. Use the XML method (any platform). Close Excel. Rename a copy of the .xlsx file to .zip. Open the zip and go to xl/worksheets. Open the sheet XML file (for example sheet1.xml) in a text editor. Find the sheetProtection tag and delete the entire tag, including its attributes. Save the file, put it back into the zip, rename the zip back to .xlsx, and open it in Excel. The sheet should now be unprotected.
  6. Use a password recovery tool if you need the actual password. Install a reputable tool from its official website. Choose the Excel sheet protection recovery mode, load your copy of the file, and start the recovery. These tools typically try common passwords first and then brute-force or use a dictionary. Recovery time depends on password length and complexity; short or simple passwords are found quickly, long random ones may take impractically long.
  7. Set a new password and save. Once the sheet is unprotected, go to Review > Protect Sheet, set a new password you will remember, and save the workbook. Store the password in a password manager.

Common Mistakes

  • Working on the only copy of the file and corrupting it. Always keep a backup.
  • Confusing sheet protection with file encryption. An open password cannot be stripped with the XML trick; the file will not open without it.
  • Editing the XML while Excel still has the file open, which causes save conflicts or a corrupt zip.
  • Downloading "password remover" tools from unofficial sites, which often bundle malware. Use only the vendor's official download page.
  • Assuming a recovered password will also unlock a different workbook. Passwords are per file and per sheet.

Tips

  • Try blank and common passwords first; many protected sheets use none or something trivial.
  • If you only need to read the data, copy the visible cells to a new sheet; protection blocks editing, not copying in most cases.
  • For workbooks you create, use Protect Workbook structure separately from Protect Sheet so you can unlock one without the other.
  • Keep a record of sheet passwords in a password manager, not in the workbook itself.

Troubleshooting

If the VBA macro errors, check that macros are enabled and that you are referencing the correct workbook and sheet name. If the XML method leaves Excel saying the file is corrupt, restore your backup and try again, making sure you did not remove any other tags. If a recovery tool finds nothing, the password may be too long or complex for a practical recovery; in that case, recreate the sheet from a copy of the data. If the file will not open at all, it is encrypted with an open password and you will need that password or a recovery service that explicitly supports open-password recovery. If you are on a managed work computer, contact your IT administrator before modifying protected files.

Frequently Asked Questions

Can I recover a forgotten Excel sheet password for free?

There is no official free Microsoft tool for this. Free methods exist (VBA and XML editing) that remove protection rather than reveal the password, and they work only on sheet protection, not on file encryption.

Does unprotecting a sheet remove the password permanently?

Yes, once the sheet is unprotected you can set a new password or leave it unprotected. The old password no longer applies.

Will these methods work on a password-protected Excel file that won't open?

No. If Excel asks for a password before showing any content, the file is encrypted and these sheet-level methods do not apply.

Is it legal to remove sheet protection from a file I don't own?

Only with the owner's permission. Sheet protection is often used to prevent accidental edits, but removing it from someone else's file without consent may violate policy or law.

Can I open a protected sheet in Excel for the web?

Excel for the web can view protected sheets but has limited protection controls. Use the desktop app for unprotecting or changing protection.

Why does the VBA method fail on some files?

It relies on the older protection hash. Workbooks saved with modern strong encryption or created in newer formats may not be affected by that macro.