How to Unprotect Excel Sheet Without Password (4 Easy Ways)

We will use a dataset that contains a weighted scoring model in a protected sheet.

If we try to make any change in the sheet, a message box appears. It says the sheet is protected.


Method 1 – Applying VBA to Unprotect an Excel Sheet Without Password

Steps:

  • Go to the Developer tab and select Visual Basic. It will open the Visual Basic window.

Apply VBA to Unprotect Excel Sheet without Password

  • Select Insert and select Module to open a new module.

Apply VBA to Unprotect Excel Sheet without Password

  • Insert the following code in the module window:
Sub Unprotect_Sheet_without_Password()
Dim x As Integer, y As Integer, z As Integer
Dim a As Integer, b As Integer, c As Integer
Dim x1 As Integer, x2 As Integer, x3 As Integer
Dim x4 As Integer, x5 As Integer, x6 As Integer
On Error Resume Next
For x = 65 To 66: For y = 65 To 66: For z = 65 To 66
For a = 65 To 66: For b = 65 To 66: For x1 = 65 To 66
For x2 = 65 To 66: For x3 = 65 To 66: For x4 = 65 To 66
For x5 = 65 To 66: For x6 = 65 To 66: For c = 32 To 126
ActiveSheet.Unprotect Chr(x) & Chr(y) & Chr(z) & _
Chr(a) & Chr(b) & Chr(x1) & Chr(x2) & Chr(x3) & _
Chr(x4) & Chr(x5) & Chr(x6) & Chr(c)
If ActiveSheet.ProtectContents = False Then
MsgBox "Password is " & Chr(x) & Chr(y) & _
Chr(z) & Chr(a) & Chr(b) & Chr(x1) & Chr(x2) & _
Chr(x3) & Chr(x4) & Chr(x5) & Chr(x6) & Chr(c)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub

Apply VBA to Unprotect Excel Sheet without Password

  • Press the Ctrl + S key to save the code and close the Visual Basic window.

Note: If you are using Excel 2010 or earlier versions, you just need to save the code. And then run it by pressing the F5 key on the keyboard. Then, you will get a message box. You just need to press OK to unprotect the Excel sheet without a password. In that case, you don’t need to follow the next steps.

  • Click on the File tab.

Apply VBA to Unprotect Excel Sheet without Password

  • Go to the Save As section and save the file as Excel 97-2003 Workbook (*.xls).

Apply VBA to Unprotect Excel Sheet without Password

  • Open the file that you saved in the previous step.
  • Go to the Developer tab and select Macros.

Apply VBA to Unprotect Excel Sheet without Password

  • The Macro window will appear.
  • Select the created code and run it.

Apply VBA to Unprotect Excel Sheet without Password

  • A message box with a fake password will appear. Press OK to proceed.

Apply VBA to Unprotect Excel Sheet without Password

  • The Excel sheet will be unprotected, and you will be able to edit any cell.

Apply VBA to Unprotect Excel Sheet without Password

Note: If you have multiple protected sheets in a workbook, run the VBA code for each sheet individually.


Method 2 – Unlocking an Excel Sheet Without a Password with the Copy-Paste Option

Steps:

  • Open the password-protected sheet and select cell A1.

Unlock Excel Sheet without Password Using the Copy-Paste Option

  • Press Shift + Ctrl + End to select all used cells.
  • Press Ctrl + C to copy the cells.

Unlock Excel Sheet without Password Using the Copy-Paste Option

Unlock Excel Sheet without Password Using the Copy-Paste Option

  • Press Ctrl + V to paste the selected cells.

Unlock Excel Sheet without Password Using the Copy-Paste Option

Note: You can use this method if the Select locked cells and Select unlocked cells actions are granted in the protected sheet.


Method 3 – Changing the Extension to Unprotect an Excel Sheet Without a Password

Steps:

  • Create a copy of the original Excel file.

Change Extension to Unprotect Excel Sheet without Password

  • Change the extension of the copied file to .zip using the rename option.

Change Extension to Unprotect Excel Sheet without Password

  • A warning message will pop up. Select Yes to proceed.

Change Extension to Unprotect Excel Sheet without Password

  • Open the zip file.
  • Open the folder named ‘xl‘.

Change Extension to Unprotect Excel Sheet without Password

  • Open the folder named worksheets.

Change Extension to Unprotect Excel Sheet without Password

  • You will find the sheets of the Excel file in .xml format.
  • Open the password-protected sheet with a text editor like Notepad. In our case, sheet4 is the password-protected sheet.

Change Extension to Unprotect Excel Sheet without Password

  • Select Format and select Word Wrap.

Change Extension to Unprotect Excel Sheet without Password

  • Press the Ctrl + F key to open the Find window.
  • Type protection in the Find what field and click Find Next.

Change Extension to Unprotect Excel Sheet without Password

  • This will highlight the word Protection.
  • Remove the whole line that contains the word Protection inside the <> symbols. The line in the sample file is given below:
<sheetProtection algorithmName=”SHA-512″ hashValue=”Jte4g3uzxM3+5TRAVyCimSDBkUYC7SR/QlnbWnQ3zW1ya4D6Sv15Cgq8okeDe55neOZK5etHia7fYJZA5g4cyA==” saltValue=”VdRksUGfqQ06FZTTQ+0JBQ==” spinCount=”100000″ sheet=”1″ objects=”1″ scenarios=”1″/>
  • Remove the line with the Backspace or Delete keys.

Change Extension to Unprotect Excel Sheet without Password

  • Save the file in the same folder that contains the zip file.

Change Extension to Unprotect Excel Sheet without Password

  • Right-click on the zip file and open it in a new window.

Change Extension to Unprotect Excel Sheet without Password

  • Go to xl and select worksheets.
  • Delete the old sheet4.xml file and copy the new sheet4.xml file here in the ‘worksheets’ folder.

  • Change the extension of the file from .zip to .xlsx.

  • Open the file and make any changes you want.


Method 4 – Using Google Sheets to Unlock Excel Sheets Without Passwords

Steps:

  • Open Google Sheets.
  • Select File and choose Import.

  • Go to Upload and drag the Excel file into the box.

  • A message box will appear. Select Import Data.

  • You can go to the protected sheet and make changes in the Google Sheets.

  • Go to File and select Download.
  • Select Microsoft Excel (.xlsx) to download the file in .xlsx.

  • Open the downloaded file and make sure you can edit it without any password.


Things to Remember

  • To unprotect multiple sheets, use the methods individually for each sheet.
  • These methods don’t work if the file itself is password-protected.
  • Make a copy of the original file because you may lose data after using the methods.

Download the Practice Book


Related Articles


<< Go Back to  Unprotect excel sheet | How to Unprotect in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mursalin Ibne Salehin
Mursalin Ibne Salehin

Mursalin Ibne Salehin holds a BSc in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. Over the past 2 years, he has actively contributed to the ExcelDemy project, where he authored over 150 articles. He has also led a team with content development works. Currently, he is working as a Reviewer in the ExcelDemy Project. He likes using and learning about Microsoft Office, especially Excel. He is interested in data analysis with Excel, machine learning,... Read Full Bio

2 Comments
  1. Your title refers to 4 easy ways. Unbelievable! I was going to print it and realized it would require 22 pages.
    Maybe these are 4 easy ways if you are a developer or an electrical or an electronics engineer and doing research on Microsoft Excel.

    But I’m doing office work and I use Excel as only a tool to help me do a job. And, in this case, I’m using my computer at home, alone, with no-one else using my computer to justify the need for “protection”. So why, all of a sudden, did my worksheet get “protected”? Could I have done something inadvertently that caused it to be “protected”?

    So I have 3 questions:
    (1). How do I find my password
    (2). Why haven’t I needed it for the past 4-6 many years?
    (3). How can I get a sheet “unprotected”, or actually turn off all protection completely, if I can’t find my password?

    Since you are truly knowledgeable with Excel, do you have the ability to talk down to my level, in terms a common, lay person can understand? Please?

    Thank you

    • Hello Tom,
      I am replying to you on behalf of ExcelDemy. It is very unfortunate to know that, you are facing such difficulties. I have gone through your queries and thought of giving the following solutions.
      1. First of all, please check this link in case you unintentionally protected your excel file through any of the methods described.
      https://www.exceldemy.com/protect-excel-sheet-from-copy-paste/
      2. When any worksheet or workbook is password protected, you cannot see them in actual letters, rather than some dots. Therefore, if you cannot unprotect the sheet with the help of this article, I am referring you to another one with some easy VBA codes to unprotect your file permanently without knowing the password.
      https://www.exceldemy.com/unprotect-all-sheets-in-excel-vba/
      3. You also mentioned that you are having trouble printing the worksheet. In this case, check this solution to solve this issue.
      https://www.exceldemy.com/excel-margins-not-printing-correctly/
      I hope the solutions will help you. Let us know your feedback.
      Thank you!

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo