How to Unprotect an Excel Sheet (A Simple Guide)
Written by the team at Iron Software
You're staring at a greyed-out Excel sheet. Every cell is locked. Typing fails, sorting fails, and right-clicking shows a nearly empty menu. Sound familiar?
Whether you set the protection yourself and need to recover the Excel password, received a file from a colleague, or want to edit a spreadsheet locked for distribution, there's a straightforward path to regaining access. This guide covers every method to unprotect an Excel sheet, from the two-second ribbon click to the no-macro XML approach, so you can get back to work fast.
If you've already searched YouTube for a video tutorial on this, you've probably seen the same two methods recycled endlessly. This post goes further covering edge cases, troubleshooting, and every real-world scenario the top results miss. *
Introduction to Excel Protection
Excel protection is a built-in security feature designed to help users control access to their data and prevent unwanted changes. Whether you’re working with a sensitive financial report, a shared project tracker, or any Excel file containing important information, protection tools let you decide who can view, edit, or format your content.
Understanding Password Protection
Password protection is a cornerstone of Excel security, giving users the ability to lock down their Excel sheets or entire workbooks with a password only authorized users know. When you set a password using the Protect Sheet or Protect Workbook options in the Review tab, Excel encrypts the content, making it impossible to edit or even view (in the case of file-level protection) without entering the correct password.
The Quickest Fix: Unprotect a Sheet from the Review Tab (30 Seconds)
If the Excel sheet was protected without a password, this is all you need:
- Open your Excel file on your computer.
- Click the Review tab in the top ribbon.
- Click Unprotect Sheet (it's in the "Protect" group, usually near the center-right of the ribbon).
- Done. The protected sheet is immediately editable.

If the button says Protect Sheet instead of Unprotect Sheet, the sheet isn't currently protected you're free to edit.
If clicking Unprotect Sheet opens a password dialog and you're prompted to enter an Excel password you don't have, read on. You'll need one of the methods below.
Method 1: Right-Click the Sheet Tab
This is arguably even faster than the ribbon for mouse-first users and works on any version of the desktop app.
-
Right-click on the sheet tab at the bottom of the screen (the tab with the sheet's name, e.g. "Sheet1" or "Budget Q3").
- In the context menu that appears, click Unprotect Sheet.
- If prompted, enter the password.

If the right-click menu shows Protect Sheet instead, the sheet is already unlocked. If "Unprotect Sheet" is greyed out, the Excel workbook structure may be protected see the troubleshooting section below. *
Method 2: Use the Format Menu (Works in Older Versions Too)
In older versions of Excel (2007–2010), or if you prefer navigating by menu rather than the ribbon:
-
Click the Home tab.
-
In the Cells group on the far right, click Format.
- At the bottom of the dropdown, click Unprotect Sheet.
- Enter the Excel password if prompted.

This path is especially useful if your ribbon has been customized, minimized, or if the software layout looks different from the standard setup. *
Method 3: Keyboard Shortcut
If you're a keyboard-first person, there's no single keystroke to unprotect an Excel sheet but you can use Excel's Alt key navigation to get there without touching the mouse:
Windows:
- Press Alt → R → PS in sequence (not held simultaneously).
- This navigates: Alt (activates ribbon shortcuts) → R (Review tab) → PS (Protect Sheet / Unprotect Sheet toggle).
On Mac, the equivalent menu path is: Tools → Protection → Unprotect Sheet
There is no Mac keyboard shortcut by default, but you can create one via System Preferences → Keyboard → Shortcuts → App Shortcuts. Sign into your Mac with admin access to save the shortcut to your account. *
Method 4: Unprotect a Sheet Using VBA (When You've Lost the Password)
This method is a life saver when you can’t remember the Excel password and need to remove protection fast. It allows a user to unprotect an excel sheet without knowing the original password. It works reliably on older .XLS files and most .XLSX files protected with Excel’s built-in sheet protection just not on files encrypted with a full open-file password.
Important caveat: This only works on sheet protection. If Excel prompts you for a password just to open the file, this VBA code won’t help that’s file-level encryption, which is a different security layer entirely.
The VBA macro below is technically a brute force approach: it cycles through character combinations at high speed until it finds a usable password equivalent that Excel accepts. It doesn’t recover your original password it generates one that works just as well, allowing the user to unprotect excel sheet even if the password is forgotten. The VBA code can generate a usable password to unlock the protected sheet, making it possible to access an excel sheet without the original password.
Steps
- Open the Excel file containing the protected sheet.
-
Press Alt + F11 to open the Visual Basic Editor (VBE).
-
In the menu bar, click Insert → Module to create a new code module.
- Paste the following VBA code into the blank module window:
Sub UnprotectSheet()
Dim ws As Worksheet
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For Each ws In ActiveWorkbook.Worksheets
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ws.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ws.ProtectContents = False Then
MsgBox "Sheet '" & ws.Name & "' unprotected!"
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Next ws
End Sub
Sub UnprotectSheet()
Dim ws As Worksheet
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For Each ws In ActiveWorkbook.Worksheets
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ws.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ws.ProtectContents = False Then
MsgBox "Sheet '" & ws.Name & "' unprotected!"
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Next ws
End Sub
Option Strict On
Sub UnprotectSheet()
Dim ws As Worksheet
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For Each ws In ActiveWorkbook.Worksheets
For i = 65 To 66
For j = 65 To 66
For k = 65 To 66
For l = 65 To 66
For m = 65 To 66
For i1 = 65 To 66
For i2 = 65 To 66
For i3 = 65 To 66
For i4 = 65 To 66
For i5 = 65 To 66
For i6 = 65 To 66
For n = 32 To 126
ws.Unprotect(Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n))
If ws.ProtectContents = False Then
MsgBox("Sheet '" & ws.Name & "' unprotected!")
Exit Sub
End If
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next
Next ws
End Sub
-
Press F5 or click the Run button (green play triangle) to execute the program.
- Wait a moment a dialog will pop up confirming each Excel worksheet has been unprotected.
- Close the VBE, return to your spreadsheet, and the sheet should now be fully editable.
⚠️ Note: Many users report this method worked perfectly on the first try for .XLSX files. It may take a few seconds longer on very old .XLS format files. Once complete, you'll have full access to edit all cells in the worksheet. *
Method 5: Use Google Sheets as a Free Workaround
This is an underrated trick that bypasses Excel’s sheet protection entirely no macros, no software to download or install, no paid account needed. All you need is a free Google account. Google Sheets often ignores Excel's sheet-level protection, allowing the user to unprotect an excel sheet without knowing the password.
-
Sign into your Google account and open Google Drive in your browser (drive.google.com).
-
Upload your .XLSX file to Drive (drag and drop from your desktop, or click + New → File Upload to browse your computer).
- Right-click the XLSX file in Drive and choose Open with → Google Sheets.
- Google Sheets will open the file and ignore the sheet-level protection the user can immediately edit the previously protected worksheet, even if you don't know the password.
- Once you’ve made your edits, go to File → Download → Microsoft Excel (.XLSX) to save it back in XLSX format.
Note: This method is especially useful for users who need to unprotect excel sheets without access to the original password. It allows you to unprotect excel sheet and edit an excel sheet without needing the password.
Limitations: Formatting, formulas, and data should survive the round-trip, but some advanced Excel features (pivot tables, certain chart types, Power Query) may not display correctly in Google Sheets. For straightforward data edits, this method works extremely well and requires nothing beyond a browser and a Google account.
Method 6: Unprotect a Workbook (vs. a Sheet — These Are Different)
There's a common point of confusion here: sheet protection and workbook protection are two separate things in Excel, and they require different steps to remove protection from each.
- Sheet protection locks the contents of a specific worksheet like cells, formulas, formatting.
- Workbook protection locks the structure of the Excel workbook i.e. you can't add, delete, move, rename, hide, or unhide sheets.
If your right-click menu on the sheet tab is greyed out, or you can't add new Excel worksheets, the workbook is protected, not just the sheet.
To unprotect the Excel workbook
-
Click the Review tab.
- Click Protect Workbook. If the workbook is protected, the button will appear "pressed" or highlighted.
- Click it to toggle protection off (enter the password if prompted).
Once workbook protection is removed, you can then unprotect individual sheets using any method from this tutorial. *
Method 7: Edit the XML File Directly (No Macros Required)
This approach works on .XLSX files which are actually zip archives containing XML files without needing VBA or any third-party software to download. It allows a user to unprotect an excel sheet without knowing the password. It’s the most technically hands-on method in this tutorial, but many non-programmers find it straightforward once they understand the file extension trick.
The key insight: an .XLSX file is just a zip file in disguise. When you change the file extension from .XLSX to .ZIP, you can open it like any other zip archive and edit the XML files inside. For example, to unprotect excel sheet, the sheet protection is stored as a single XML tag in the relevant worksheet file (such as sheet1.xml for the first worksheet) delete that tag, save the modified XML file, and the protection is gone. This method enables you to unlock an excel sheet without the password, making it accessible to the user.
Step-by-Step Instructions
-
Make a copy of your .XLSX file first, you're about to edit it directly, so always save a backup on your desktop or in a separate folder on your computer.
- Rename the copy so it has a .ZIP file extension instead of .XLSX (e.g., Budget.xlsx → Budget.zip). Windows may display a warning when you change the file extension — confirm the rename.
- Open the zip file using Windows Explorer or a zip program like 7-Zip.
- Navigate to the xl/worksheets/ folder inside the zip archive.
- Find the XML file corresponding to your protected sheet (e.g., sheet1.xml, sheet2.xml).
-
Extract it to your desktop, then open it with Notepad or any plain text editor on your computer.
-
In Notepad, use Ctrl + F to search for sheetProtection.
- Find the <sheetProtection tag it typically looks like: <sheetProtection algorithmName="SHA-512" hashValue="..." password="..." .../>. This is the sheetProtection tag that enforces the lock on your Excel sheet.
-
Select and delete the entire sheetProtection tag line.
- Save the modified XML file in Notepad.
-
Copy the modified XML file back into the zip archive, replacing the original (drag and drop in Windows Explorer, or use 7-Zip's update function).
- Rename the zip archive back to .xlsx format by changing the file extension from .zip to .xlsx.
- Open the file in Excel, the sheet is now unprotected and fully editable.
⚠️ Important: Only delete the
tag. Do not edit or delete any other lines in the XML file. Modifying the wrong tag will corrupt the spreadsheet. Always work on a copy, never the original file. *
Brute Force Method to Unprotect Excel
The brute force method is a last-resort approach for unlocking an Excel sheet when the password has been forgotten. This technique involves systematically trying every possible password combination until the correct one is found. While brute force can be effective for simple or short passwords, it becomes impractical for longer, more complex passwords due to the sheer number of possibilities.
In the context of Excel, brute force attacks can be carried out using specialized software or VBA scripts that automate the process of entering different password combinations. Some tools are designed specifically to unlock Excel sheets or workbooks by exploiting weaknesses in the protection algorithm, especially in older versions of Excel.
However, it’s crucial to understand the ethical and legal implications of using brute force methods. Attempting to unlock an Excel sheet or workbook without the owner’s permission is not only unethical but may also be illegal. Brute force should only be used on your own files when you’ve genuinely forgotten the password and have no other way to regain access.
If you decide to use a brute force method, proceed with caution. Always use reputable software or trusted VBA code, and be aware that the process can take a significant amount of time depending on the password’s complexity. For most users, this method is a last resort, but it can be a life saver when all other options have been exhausted and you need to unlock your Excel sheet to access or edit important data.
Common Issues and Troubleshooting
"Unprotect Sheet" is greyed out or missing
This usually means the Excel workbook structure is protected. Go to Review → Protect Workbook and disable that first, then try to unprotect the sheet again. This is the most common error people run into with this process.
The password dialog appears but forgot the password
Try the VBA brute force macro (Method 4) or the XML file editing method (Method 7). The Google Sheets method (Method 5) may also bypass the lock without a password prompt at all. All three methods have worked for users who no longer have access to the original password.
"File is corrupt" error after editing the XML
You likely modified something beyond the
The VBA macro runs but nothing happens
Make sure macros are enabled in your security settings. Go to File → Options → Trust Center → Trust Center Settings → Macro Settings and select Enable all macros (you can revert this after). Also confirm you pasted the VBA code into a Module (Insert → Module), not directly into the Sheet or Workbook code pane. If you paste in the wrong place in the VBE, the program won't run correctly.
The file requires a password just to open it
This is file-level encryption, a different layer of security from sheet protection. If Excel prompts you for a password before the file opens, none of the methods in this post will help. You'll need the original password or dedicated file recovery software.
The layout looks different on a Mac
On Mac, the path to unprotect an Excel sheet is Tools → Protection → Unprotect Sheet. The Review tab method also works, the ribbon layout varies slightly by version, but the Unprotect Sheet button is in the same group. The VBA method (Alt + F11) also works on Mac Excel.
Able to edit certain cells after unprotecting
Some Excel worksheets use a more granular permission system where certain cells or ranges remain locked for specific users even after general sheet protection is removed. If you unprotect the sheet but still can't edit a particular area, check Review → Allow Edit Ranges to see if range-level access controls have been set up as a separate security layer. *
For Developers: Unprotect Excel Worksheets Programmatically with IronXL
If you need to unprotect Excel worksheets as part of an automated workflow processing batches of files, building a web app, or integrating with an internal system, removing protection manually through the desktop software isn't realistic at scale.
IronXL is a .NET library that lets you read, write, and manipulate Excel files directly in C# without needing Excel installed on the server. Removing sheet protection is a single line of code, no GUI access, no password prompts, no manual XML file editing:
using IronXL;
WorkBook workBook = WorkBook.Load("ProtectedReport.xlsx");
WorkSheet sheet = workBook.WorkSheets[0];
// Remove sheet protection programmatically
sheet.UnprotectSheet("your-password-here");
workBook.SaveAs("UnprotectedReport.xlsx");
using IronXL;
WorkBook workBook = WorkBook.Load("ProtectedReport.xlsx");
WorkSheet sheet = workBook.WorkSheets[0];
// Remove sheet protection programmatically
sheet.UnprotectSheet("your-password-here");
workBook.SaveAs("UnprotectedReport.xlsx");
Imports IronXL
Dim workBook As WorkBook = WorkBook.Load("ProtectedReport.xlsx")
Dim sheet As WorkSheet = workBook.WorkSheets(0)
' Remove sheet protection programmatically
sheet.UnprotectSheet("your-password-here")
workBook.SaveAs("UnprotectedReport.xlsx")
For Excel workbook-level protection, IronXL handles that too, no manual zip archive manipulation required:
// Remove Excel workbook structure protection
workBook.Unprotect("workbook-password");
workBook.SaveAs("UnprotectedWorkbook.xlsx");
// Remove Excel workbook structure protection
workBook.Unprotect("workbook-password");
workBook.SaveAs("UnprotectedWorkbook.xlsx");
No Excel installation required. Works in ASP.NET web apps, console apps, Azure Functions, and Windows Services. Download the library via NuGet and add it to your project in minutes.
Explore the full documentation including how to protect, unprotect, and manage security on Excel files programmatically at the IronXL Excel library page. *
Quick Reference: Which Method Should You Use?
| Situation | Best Method | | --- | --- | | No password set | Review tab → Click Unprotect Sheet | | No password, keyboard preferred | Alt → R → PS | | Password unknown, macros enabled | VBA brute force macro (Method 4) | | Password unknown, no macros | Edit the XML file (Method 7) | | Quick fix, just need to edit data | Google Sheets upload (Method 5) | | Excel workbook structure is locked | Unprotect Workbook first (Method 6) | | Batch processing / automation | IronXL for .NET (Developer section) |
Summary
Knowing how to unprotect an Excel sheet is one of those skills that feels impossible the first time and obvious the second. For most users, it's a two-second job: click the Review tab and click Unprotect Sheet. When you're prompted for an Excel password you don't have, the VBA brute force method and the XML file approach both work without any specialist software to download.
The biggest thing most video tutorials miss: sheet protection and workbook protection are separate. If your right-click menu is greyed out or the Unprotect Sheet button does nothing, check the Protect Workbook setting on the Review tab first. This distinction alone will save you a lot of time and frustration.
Whichever method you use, always save a backup copy of your XLSX file before you start. A backed-up spreadsheet takes two seconds to create and could save you from a corrupted file.




