To unprotect an Excel sheet without the password, you can use a built-in VBA trick that removes the protection in seconds. This works for worksheet-level passwords (not workbook-level or file-open passwords) and is a well-known method that does not require third-party software. You will need a Windows PC with Excel (2010 or later) and the ability to run a simple macro. If the file has a password to open it, you must know that password first; this guide does not bypass file encryption.

What You'll Need

  • A Windows PC with Microsoft Excel (2010, 2013, 2016, 2019, 2021, or Microsoft 365) – the VBA method may not work on Excel for Mac.
  • The Excel file (.xlsx or .xlsm) that is protected at the worksheet level.
  • If the file is .xlsx, you need to change the extension to .zip temporarily – so make sure file extensions are visible in File Explorer.

Step-by-Step

Method A: Using VBA (Easiest for Most Users)

  1. Open the protected Excel file. If the sheet is protected, you’ll see a warning when you try to edit a cell.
  2. Press Alt + F11 to open the Visual Basic for Applications (VBA) editor. If you don’t see the editor, make sure you have Developer tab enabled? Actually, you can press Alt+F11 regardless; it works in all Excel versions.
  3. In the VBA editor, click Insert > Module from the top menu.
  4. Copy and paste the following code into the module window:
Sub UnprotectSheet()
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
        ws.Unprotect Password:=""
    Next ws
End Sub
  1. Press F5 (or click the green Run arrow) to run the macro. If the sheet has no password, it will unprotect instantly. If it has a password, you’ll get an error – in that case, use Method B below.
  2. Close the VBA editor (Alt + Q) and try to edit a cell. The sheet should be unprotected.

Method B: Using the .zip Trick (Works When the Password Is Unknown)

  1. Close the Excel file completely.
  2. In File Explorer, locate the file. Right-click it and choose Rename.
  3. Change the file extension from .xlsx to .zip. If you don’t see the extension, enable “File name extensions” in the View tab of File Explorer.
  4. Press Enter. Windows will ask if you’re sure – click Yes.
  5. Now right-click the .zip file and choose Extract All. Extract to a folder (e.g., on your Desktop).
  6. Open the extracted folder, then open the xl folder.
  7. Look for a file named worksheets – inside that folder, you’ll see files like sheet1.xml, sheet2.xml, etc. Each sheet has its own XML file.
  8. Right-click the XML file for the protected sheet and choose Open with > Notepad (or any text editor).
  9. In the XML code, search for the word "protection" (without quotes). You’ll see a tag like <sheetProtection ... />.
  10. Delete the entire <sheetProtection> tag (from <sheetProtection to the closing />). Be careful not to delete anything else.
  11. Save the file (Ctrl+S) and close Notepad.
  12. Now go back to the extracted folder, select all the files and folders inside it, right-click, and choose Send to > Compressed (zipped) folder. This creates a new .zip file.
  13. Rename that new .zip file to have an .xlsx extension (e.g., Unprotected.xlsx).
  14. Open that new Excel file. The sheet protection will be gone.

Common Mistakes

  • Using the wrong file extension: The .zip trick only works with .xlsx (and .xlsm) files. If your file is .xls (old format), you’ll need to save it as .xlsx first (File > Save As).
  • Deleting too much XML: When editing the XML, make sure you delete only the <sheetProtection> tag. If you accidentally delete other tags, the sheet may become corrupted.
  • Not closing Excel before renaming: If the file is open in Excel, Windows won’t let you rename it. Close Excel first.
  • Running the VBA macro on a workbook-level password: The VBA method only works for worksheet protection. If the whole workbook is protected (structure), you’ll need the password.

Tips

  • Always keep a backup copy of the original file before attempting any unprotection method.
  • If you know the password, simply go to Review > Unprotect Sheet and enter the password. That’s the official way.
  • For Excel for Mac, the VBA method may work if you enable the Developer tab, but the .zip trick is Windows-only because Mac doesn’t show extensions the same way.
  • If you’re unprotecting a sheet to edit it, consider re-protecting it afterward with a password you remember, to keep your data safe.

Troubleshooting

If the VBA macro gives an error ("Run-time error 1004"): This means the sheet has a password. The simple VBA code above won’t work. Use the .zip method instead.

If the .zip method fails and the file becomes corrupted: You likely deleted the wrong XML tag or saved the XML incorrectly. Start over with a fresh copy of the original file. Be precise: the tag to delete is exactly <sheetProtection ... />.

If you can’t see file extensions: In File Explorer, go to the View tab and check the box for “File name extensions”.

If the sheet is still protected after the .zip method: Double-check that you edited the correct sheet XML. Open the XML and search for “sheetProtection” – if it’s still there, you missed it. Save again and re-zip.

If the file is .xls (old format): Open it in Excel, go to File > Save As, and choose “Excel Workbook (*.xlsx)” before trying the .zip method.

Frequently Asked Questions

Can I unprotect an Excel file that has a password to open it?

No. The methods here only remove worksheet protection. If the file itself is encrypted (you need a password to open it), you cannot bypass that without the password – that’s a security feature.

Will this work on Excel for Mac?

The VBA method might work if you enable the Developer tab, but the .zip method is Windows-only because macOS doesn’t allow easy extension changes. On Mac, try the VBA method or use the official Unprotect Sheet command if you know the password.

Is it legal to unprotect a sheet without the password?

It’s legal if you own the file or have permission from the owner. The protection is a convenience feature, not a security measure. However, bypassing it on someone else’s file without permission may violate their terms of use.

What if the sheet is protected with a password I don’t know?

Use the .zip method – it removes the protection entirely without needing the password. The VBA method only works for blank passwords.

Does this work for workbook structure protection (e.g., hidden sheets)?

No. The methods here target sheet protection. To unprotect a workbook structure, you need the password or a different approach (like the .zip method on the workbook.xml file, but that’s more complex and not guaranteed).

Will I lose any data or formatting?

No. The methods only remove the protection flag. All data, formulas, and formatting remain intact. However, if you edit the XML incorrectly, you could corrupt the file – so always back up first.