How to Unprotect Excel Sheet

TipsMake today will show you how to unprotect worksheets in Microsoft Excel workbooks on Windows or macOS. If the sheet is password protected and you don't know it, you can use Google Sheets or a VBA script (on earlier versions of Excel) to remove the protection.

Using Microsoft Excel

How to Unprotect Excel Sheet Picture 1How to Unprotect Excel Sheet Picture 1

Open a workbook with protected worksheets in Microsoft Excel. Normally, you just need to double-click the file name on your computer.

How to Unprotect Excel Sheet Picture 2How to Unprotect Excel Sheet Picture 2

Right click on the tab of the protected sheet. Each worksheet displays as a card along the bottom edge of Excel. Protected sheets often have a padlock icon on some versions of Excel. You need to right-click the card (or lock icon) to open the context menu.

If multiple sheets are protected, you need to remove the protection for each sheet separately.

How to Unprotect Excel Sheet Picture 3How to Unprotect Excel Sheet Picture 3

Click Unprotect Sheet . If the sheet does not have a password, it will be unlocked immediately. Otherwise, you will be asked to enter your password in the pop-up window.

How to Unprotect Excel Sheet Picture 4How to Unprotect Excel Sheet Picture 4

Enter the password and click OK . If the password is correct, the sheet will be unprotected.

If you don't know the password, see the Using Google Sheets method. This allows you to upload files to Google Sheets, then all the security layers that have been added to Excel will be removed.

If you're using Excel 2010 or earlier and don't want to upload files to Google Sheets, see How to Use VBA code in Excel 2010 or earlier.

Upload to Google Sheets

How to Unprotect Excel Sheet Picture 5How to Unprotect Excel Sheet Picture 5

Go to https://drive.google.com using a web browser. If you have a Google account, you can use Google Sheets (a free online application similar to Excel) to remove protection from all worksheets in a workbook even if you don't know the password.

If you're not signed in to your Google account, follow the onscreen instructions to sign in.

If you don't have a Google account, you can see How to create a Google account.

How to Unprotect Excel Sheet Picture 6How to Unprotect Excel Sheet Picture 6

Click + New in the upper-left corner of the page.

How to Unprotect Excel Sheet Picture 7How to Unprotect Excel Sheet Picture 7

Click File Upload . Your computer's Open pane will open.

How to Unprotect Excel Sheet Picture 8How to Unprotect Excel Sheet Picture 8

Select the Excel file you want to edit and click Open . The file will be uploaded to Google Drive.

How to Unprotect Excel Sheet Picture 9How to Unprotect Excel Sheet Picture 9

Double-click the Excel file in Google Drive. You may need to scroll down to find it. A preview of the file will open.

How to Unprotect Excel Sheet Picture 10How to Unprotect Excel Sheet Picture 10

Click the Open with menu . This option is at the top of the preview. A menu will be expanded.

How to Unprotect Excel Sheet Picture 11How to Unprotect Excel Sheet Picture 11

Click Google Sheets . So the file will be opened for editing on Google Sheets, any sheet protection added in Excel will be removed.

How to Unprotect Excel Sheet Picture 12How to Unprotect Excel Sheet Picture 12

Re-download the file to your computer. If you want to continue working with files in Microsoft Excel rather than Google Sheets, you can download this new unprotected version of the workbook by following these steps:

Click the File menu in the upper-left corner of the sheet.

Click Download As.

Click Microsoft Excel (.xlsx) .

Select the folder to save the file. If you want to keep the original of the file (with protected sheet), enter a new name for the file to be loaded.

Click Save to load the file.

Using VBA code on Excel 2010 and earlier

How to Unprotect Excel Sheet Picture 13How to Unprotect Excel Sheet Picture 13

Open the workbook with the protected worksheet in Excel by double-clicking the file name on the desktop. Excel files usually end with the .xls or .xlsx extension.

Apply this method if you have tried unlocking the sheet but found that the sheet is password protected (and you don't know the password).

This method will not work on Excel 2013 and later.

How to Unprotect Excel Sheet Picture 14How to Unprotect Excel Sheet Picture 14

Save the file as xls format. If the file you are working with has the extension ".xlsx" (common if the spreadsheet was created or edited on later versions of Excel), you need to convert the file to Excel 97-2003 format. (.xls) first to apply this method. Here's how to proceed:

Click the File menu in the upper right corner.

Click Save As.

Go to the folder where you want to save the file.

Select Excel 97-2003 (.xls) from the "Save as type" or "File Format" menu.

Click Save.

Follow the on-screen instructions to perform all the necessary conversions.

How to Unprotect Excel Sheet Picture 15How to Unprotect Excel Sheet Picture 15

Press Alt+F11 to open the Visual Basic Editor.

How to Unprotect Excel Sheet Picture 16How to Unprotect Excel Sheet Picture 16

Right-click the filename in the "Project - VBAProject" pane. This item is at the top of the left pane. Make sure you right-click the option that contains the filename (the ".xls" extension) is at the top. A menu will be expanded.

How to Unprotect Excel Sheet Picture 17How to Unprotect Excel Sheet Picture 17

Click Insert in the menu. Another menu will expand.

How to Unprotect Excel Sheet Picture 18How to Unprotect Excel Sheet Picture 18

Click on Module to insert a new module that we will paste some code into.

How to Unprotect Excel Sheet Picture 19How to Unprotect Excel Sheet Picture 19

Copy code. Highlight the code below and then press Ctrl+C (PC) or ⌘ Command+C to copy:

Sub PasswordBreaker() Breaks worksheet password protection. 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 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 ActiveSheet.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 ActiveSheet.ProtectContents = False Then MsgBox "Password is " & Chr(i) & Chr(j) & _ Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _ Chr(i3)") &

How to Unprotect Excel Sheet Picture 20How to Unprotect Excel Sheet Picture 20

Right-click the new module and select Paste . The copied code will appear in the module window.

How to Unprotect Excel Sheet Picture 21How to Unprotect Excel Sheet Picture 21

Press F5 to execute the code. Excel will run the code, and it will take a few minutes. Once done, a new password will appear in a pop-up window.

The new password will be a random number that replaces the original password.

How to Unprotect Excel Sheet Picture 22How to Unprotect Excel Sheet Picture 22

Click OK on the Password dialog box that pops up. The new password will appear, but you don't need to write it down. Just click OK and the sheet protection layer will be removed automatically.

If you converted the file format before, you can now save the workbook again as a .xlsx file.

4 ★ | 1 Vote