Want to learn how to unprotect Excel sheets? Read this Microsoft Excel tutorial until the end to master this must-have Excel skill.
You can protect an Excel worksheet using a password or without one. This feature enables you to restrict someone else from accessing confidential data other than the intended recipient. It works like a tool of accountability. You know whom to contact if a third party accessed your Excel worksheet using a password you only shared with a colleague or employee.
Now, you might want to unprotect such locked Excel worksheets to allow public access. Or, you want to change the password because you suspect it’s no longer a secret. If you know the old password, it’s a cakewalk. What if you’ve forgotten the current password?
Read this article and follow along with the methods to learn various methods to unlock Excel sheets.
⚠️ Warning: This article is only for educational purposes. Try the tricks only on workbooks and worksheets created by you. Don’t misuse the Excel knowledge shared to violate someone else’s intellectual property rights.
Unprotect Excel Sheet With a Password
Suppose, your supervisor has emailed you a confidential inventory database in an Excel workbook to review and make changes. The password to unlock the file is also in the email. But, you’ve never used this Excel functionality before. Find below all the methods you can follow:
📒 Read More: Lock a Sheet in Microsoft Excel
From the Info Menu
![Click the Unprotect button](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Click-the-Unprotect-button.png)
Open the Excel workbook on your PC or Mac.
Click on the File tab.
A left-side navigation panel shall open.
There, click on the Info menu.
On the right side, you should see a yellow button showing Protect Workbook.
![Enter password for unlocking sheet](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Enter-password-for-unlocking-sheet.png)
Click the Unprotect hyperlink in the button and enter the password that you’ve received via email.
The yellow Protect Workbook button shall now turn grey or according to the color of the Excel backstage interface.
That’s it! You’ve successfully unlocked the spreadsheet.
Using a Right-Click
If you can’t follow the steps mentioned earlier, no worries.
![Unprotect sheet on context menu](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Unprotect-sheet-on-context-menu.png)
Go to the worksheet you want to unlock.
Right-click on the sheet name tab at the bottom of the worksheet interface.
On the context menu that opens, click on the Unprotect Sheet option.
![Unlock sheet using right-click](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Unlock-sheet-using-right-click.png)
Enter the sheet protection password into the Unprotect Sheet dialog box and click OK.
From the Format Drop-Down
The Format tool of the Cells commands block in the Excel Home tab allows you to unlock a sheet with or without passwords. Saying without a password, I mean that the author didn’t enter any password when using the Protect Worksheet command.
![Use a shortcut to unprotect worksheet](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Use-a-shortcut-to-unprotect-worksheet.png)
Access the locked sheet in the workbook and press Alt + H + O + P to unprotect the sheet in a single click.
If the worksheet is password protected, you’ll see the Unprotect Sheet dialog.
Using the Review Tab
![Using the Review tab to unprotect sheet](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Using-the-Review-tab-to-unprotect-sheet.png)
The primary location of the Unprotect Sheet command button is the Protect block in the Review tab.
You can press the keyboard shortcut Alt + R + ZH + PS to use the Unprotect Sheet command.
If there’s a password, you shall see the dialog box to enter the secret code. If there’s none, Excel shall unprotect the sheet instantly.
Unlock Excel Sheet at the Workbook Level
You can’t access a locked worksheet if the Excel workbook is password protected. If you’ve got the secret code to unlock the Excel file, follow any of the following methods to access the protected worksheets:
Using the Encrypt With Password Tool
![Workbook locked password](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Workbook-locked-password.png)
When you try to open the workbook, you’ll see the Password dialog.
There, enter the secret code shared by the author.
Now, you can access all the sheets of the workbook.
Follow any of the sheet-unlocking methods explained above to unprotect the spreadsheet.
![Encrypt with Password](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Encrypt-with-Password.png)
To remove the password protection, go to the Info menu from the File tab.
Click the Protect Workbook drop-down and click on the Encrypt with Password button.
![Delete password](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Delete-password.png)
On the Encrypt Document dialog, delete the masked password and click OK.
Then, click the Save button on the left-side navigation panel to remove the password protection.
Using the Save As Dialog
This method is useful for removing read and write protection of an Excel workbook.
![Save As menu](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Save-As-menu.png)
Open the protected workbook by following the above method using a password.
Now, click on the File tab and select the Save As option from the left-side navigation panel.
You’ll see the Save As menu on the right side.
Click on the Browse button to bring up the Save As dialog.
![The General Options on Tools](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/The-General-Options-on-Tools.png)
Click the Tools drop-down located at the bottom of the Save As box and hit the General Options button.
![Delete read write passwords](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Delete-read-write-passwords.png)
On the General Options drop-down, you’ll see the following options:
- Password to open
- Password to modify
Delete the passwords in the above fields and click OK.
![Save file to remove workbook protection](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Save-file-to-remove-workbook-protection.png)
Now, click the Save button on the Save As dialog to remove the workbook protection.
Disable Access Restriction to Unprotect a Sheet
If you’re the author or Microsoft 365 domain administrator, you can disable the Access Restriction feature to unprotect a sheet. This feature lets you restrict selected people from your organization to open, read, or write workbooks and worksheets.
![Restrict Access option](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Restrict-Access-option.png)
Click on the Protect Workbook menu in the Info tab of the Excel backstage view. You can arrive here by clicking the File tab from the worksheet view.
Hover the cursor over the Restrict Access option.
You’ll now see the Restricted Access option in the overflow menu. Click on that.
![Sensitivity set to Public](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Sensitivity-set-to-Public.png)
Click on the Sensitivity drop-down list on the next message box and switch it to Public.
Click Apply to unprotect the workbook as well as the worksheets in it.
So far, you’ve learned multiple techniques to unprotect a workbook or worksheet provided that you know the password.
Suppose, you’ve forgotten the password or you’d like to change a forgotten password for a worksheet or workbook.
In these events, you can try any of the methods explained below:
Unprotect Excel Sheet Using Google Drive
![Drag and drop XLSX file on Google Drive](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Drag-and-drop-XLSX-file-on-Google-Drive.png)
If you’ve got a Google Workspace free or paid account, go to Google Drive.
Now, go to My Drive from Home.
Drag and drop the workbook that contains a locked worksheet on My Drive.
![Click on uploaded file name](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Click-on-uploaded-file-name.png)
Click on the file name when the upload is complete.
![The spreadsheet view becomes editable](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/The-spreadsheet-view-becomes-editable.png)
Google Sheets shall process the uploaded XLSX or XLS file and create a spreadsheet view for it.
You’ll see that you can now edit the worksheet.
![Downloading an Excel copy](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Downloading-an-Excel-copy.png)
Click File on Google Sheets and choose the Microsoft Excel option in the Download menu.
Once the downloading is done, you get an unprotected copy of the previously locked worksheet.
When you open this XLSX file on your Excel desktop app, you’ll see the Protected View warning message. It should be below the Excel ribbon menu.
Click Enable Editing to start modifying your locked worksheet.
Unlock Excel Sheet Using an Online Tool
![drag and drop file on web app](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/drag-and-drop-file-on-web-app.png)
Go to the LostMyPass Excel Password Recovery portal.
Drag and drop the Excel file containing the locked worksheet. The maximum file size for the worksheet shouldn’t be more than 100 MB.
Once uploaded, the tool shall process the workbook to unlock the worksheet.
![Download unlocked file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Download-unlocked-file.png)
If the process is over, you’ll see the Download Unlocked File button. Click on it to download the Excel file.
Open the workbook in your Excel desktop app. Click the Enable Editing button to start editing the locked worksheet.
The remote connectivity between your device and LostMyPass is encrypted with HTTPS protocol. Therefore, it’ll be tough to intercept the data you’re sending to and receiving from the server.
However, you shouldn’t use this method to unprotect Excel worksheets if the workbook contains highly sensitive business data.
Unlock Excel Sheet Using Its XML File
Close the workbook containing the locked worksheet and create a backup copy of it.
![Rename XLSX to ZIP](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Rename-XLSX-to-ZIP.png)
Now, rename the original Excel workbook to attach the ZIP extension to it.
![Extract a ZIP file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Extract-a-ZIP-file.png)
Right-click on the newly created ZIP file and choose the Extract Here option from the context menu. You’ll see this option if you’ve got WinRAR or 7-Zip on your PC.
![Contents of an XLSX file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Contents-of-an-XLSX-file.png)
Now, you’ll find a few folders in the directory where you’ve extracted the ZIP file.
Go to the xl folder and then worksheets.
Inside the worksheets directory, you’ll find all the worksheets of the workbook. These are XML files.
![Open XML file with Notepad](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Open-XML-file-with-Notepad.png)
Right-click on an XML file and open the file in Notepad.
![Find sheetprotection](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Find-sheetprotection.png)
Search the file for sheetProtection
. Select the entire code line within the < >
symbols. The code line should be similar to the one shown below:
<sheetProtection algorithmName="SHA-512" hashValue="wLddqOTiYFNfYJVBr7Olb/P5x8UsOtAzY/CRDOIRhPGhm+HSypJW7My5HIWikvTBgjEWaAXVWx3xZtdUO3vh/Q==" saltValue="NgYlE9G9x52CUd7p2HmeSA==" spinCount="100000" sheet="1" objects="1" scenarios="1"/>
Hit the Delete button.
![Save modified XML file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Save-modified-XML-file.png)
Save the Notepad file.
![ZIP all components of an XLSX file to a ZIP file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/ZIP-all-components-of-an-XLSX-file-to-a-ZIP-file.png)
Now, highlight all three folders and [Content_Types] XML file. Compress it into one ZIP file.
![Rename the ZIP file to XLSX file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Rename-the-ZIP-file-to-XLSX-file.png)
Rename the ZIP file to an XLSX file.
![Unprotected sheet using XML editing](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Unprotected-sheet-using-XML-editing.png)
Now, open the Excel workbook and you should be able to edit the contents of the locked worksheet.
Unprotect Excel Sheet Using a VBA Script
If you know how to use VBA in Excel to automate tasks, you’ll also want to learn how to unlock Excel sheets using VBA.
Find below the script you can use:
![VBA script to find password](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/VBA-script-to-find-password.png)
Sub unprotectsheet()
Dim digit1 As Integer, digit2 As Integer, digit3 As Integer, digit4 As Integer
Dim digit5 As Integer, digit6 As Integer, digit7 As Integer, digit8 As Integer
Dim digit9 As Integer, digit10 As Integer, digit11 As Integer, digit12 As Integer
If ActiveSheet.ProtectContents Then
On Error Resume Next
For digit1 = 65 To 66
For digit2 = 65 To 66
For digit3 = 65 To 66
For digit4 = 65 To 66
For digit5 = 65 To 66
For digit6 = 65 To 66
For digit7 = 65 To 66
For digit8 = 65 To 66
For digit9 = 65 To 66
For digit10 = 65 To 66
For digit11 = 65 To 66
For digit12 = 32 To 126
ActiveSheet.Unprotect Chr(digit1) & Chr(digit2) & Chr(digit3) & Chr(digit4) & Chr(digit5) & Chr(digit6) & Chr(digit7) & Chr(digit8) & Chr(digit9) & Chr(digit10) & Chr(digit11) & Chr(digit12)
Next digit12
Next digit11
Next digit10
Next digit9
Next digit8
Next digit7
Next digit6
Next digit5
Next digit4
Next digit3
Next digit2
Next digit1
MsgBox "One usable password is " & Chr(digit1) & Chr(digit2) & Chr(digit3) & Chr(digit4) & Chr(digit5) & Chr(digit6) & Chr(digit7) & Chr(digit8) & Chr(digit9) & Chr(digit10) & Chr(digit11) & Chr(digit12)
End If
End Sub
Go through this Excel tutorial to learn the technique to use the above VBA script to develop a VBA macro:
📒 Read More: How To Use The VBA Code You Find Online
![Macro dialog](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Macro-dialog-2.png)
Once you’ve created the VBA macro, press Alt + F8 to bring up the Macro dialog. There, choose the unprotectsheet macro and hit the Run button.
The script might take hours to run to find the password of the protected worksheet.
Once done, you shall see a dialog box with a dummy password.
Simply click OK on the dialog box to complete the unlocking process of the locked spreadsheet.
![](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Rename-to-XLS.png)
If the script doesn’t work, change its extension to XLS from XLSX.
Now, run the VBA script again, and this time Excel should be able to look up the password.
Unlock Excel Sheet Using a Workaround
Create a new Excel workbook on your device.
![Copy content from locked sheet](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Copy-content-from-locked-sheet.png)
Now, navigate to the locked worksheet opened on another workbook. Click on any blank cell in the worksheet and press Ctrl + A to select everything.
Press Ctrl + C to copy the content.
![Paste content on new worksheet](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2024/03/Paste-content-on-new-worksheet.png)
Go to your new workbook and paste the copied data into a sheet by pressing Ctrl + V.
This method only works if the workbook isn’t locked with a password and you’ve got read access to it.
Conclusions
These are all the tried and tested methods to unprotect an Excel sheet. It becomes easier to unlock and disable the protection of workbooks and worksheets if you know the password. For this, you should use the Unprotect Sheet feature.
However, if you can’t recall the password, you can use other methods like Google Drive, XML editing, VBA scripting, an online Excel file unlocker, etc.
Did you find the Excel tutorial helpful? Comment below. Also, if you know a better method that I might have missed, mention that in your comment.
Thanks. It helped me a lot when I lost my excel password.