Unlock Your Excel: How to Remove Sheet and Workbook Protection

Locked out of your Excel file? It’s super frustrating when you can’t access or edit important stuff. Good news, there are ways to get back in, even without the password! Here’s a breakdown of methods to unprotect those Excel files.

## Method 1: Using Google Sheets

Google Sheets can be a surprisingly effective way to bypass Excel sheet protection. Here’s how:

1. First, head over to your Google Drive. Hit the **New** button at the top left.
![New button](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-40.png)

2.  In the dropdown, hover over **Google Sheets** and click **Blank spreadsheet**.
![Blank spreadsheet option](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-41.png)

3. Now, in the new sheet, go to **File** in the toolbar, and then select **Import** from the dropdown.
![Import option](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-42.png)

4.  In the import dialog box, switch to the **Upload** tab. Click **Select a file from your device** to find your Excel file.
![Upload Tab](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-43.png)

5.  Find your protected Excel file, select it, and click **Open**. You could also drag and drop it in.
![Open option](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-44.png)

6.  When it prompts, pick **Replace spreadsheet** and then click on **Import data**.
![Import data option](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-45.png)

7.  The protected sheet will pop open in Google Sheets, and the protection should be gone! Edit away!
![Unprotected excel sheet in google sheet](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-46.png)

8. If you want to save it back as an Excel file, click **File**, then **Download**, and choose **Microsoft Excel (.xlsx)**.
![Download option](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-47.png)

9. Pick a place to save the file, give it a new name if you want, and hit **Save**.
![Save option](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-48.png)

Now, you have an unprotected Excel sheet ready to go.

## Method 2: VBA Code to Unprotect a Sheet

If Google Sheets isn't cutting it, VBA can come to the rescue.

1. Start by opening the Excel file containing the sheet that is protected.

2.  Press `Alt + F11` to open the Visual Basic for Applications (VBA) editor.

3. In the VBA editor, look for the **Project-VBAProject** pane on the left. Expand **Microsoft Excel Objects**, right-click the sheet you need to unlock, select **Insert**, then **Module**.
![Insert module](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-25.png)

4. In the new Module window, copy and paste this VBA code:
```vba
Sub PasswordBreaker()
    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 "One usable password is " & Chr(i) & Chr(j) & _
    Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
    Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
    Exit Sub
    End If
    Next: Next: Next: Next: Next: Next
    Next: Next: Next: Next: Next: Next
    End Sub
```
![vba code](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-5-759x648.png)
5.  Press `F5` or hit the **Run** button in the toolbar. The macro will start trying to unprotect the sheet. It might take a bit.
![run button](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-6.png)

Once it's done, the sheet should be unlocked.

## Method 3: Zip File Trick for Sheets

This one's a bit more technical, but it can work:

1. First, go to the Control Panel and select **File Explorer Options** (or just "File Options").
![File Explorer options](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-13.png)

2. In the File Explorer Options, click the **View** tab. Uncheck the box that says **Hide extensions for known file types**. Click **Apply**, then **OK**.
![view tab](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-14.png)

3. Find the protected Excel file in File Explorer. Right-click and choose **Rename**. Change `.xlsx` to `.zip` and hit **Enter**. Confirm the change.
![Rename file](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-15.png)

4. Open the newly renamed zip file. Go inside the `xl` folder.
![xl folder](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-17.png)

5. Now, open the `worksheets` folder. You’ll see XML files, each one representing a sheet in the workbook.

6. Find the XML file for the sheet you want to unlock. Right-click, then **Open with** and choose **Notepad**.
![open with notepad](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-18-759x416.png)

7. In Notepad, press `CTRL + F` to find, and then search for the tag `<sheetProtection`. Delete this entire tag.
![delete sheetProtection tag](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-34.png)

8. Save the changes in Notepad (`CTRL + S`) and close it.

9. Repackage the files into a zip archive by selecting them all, right-clicking, then **Send to > Compressed (zipped) folder**.
 ![send to zip](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-24.png)

10. Rename the new zip file, changing the extension from `.zip` back to `.xlsx`. Confirm the change.

Now, the sheet should be unprotected.

## Method 4: If You Know the Password

If you actually remember the password, the process is simple:

1. Open the Excel file.

2. Click the **Review** tab in the ribbon.

3. To unprotect a sheet, click **Unprotect Sheet**. Enter the password when prompted and click **OK**.
![Unprotect Sheet](https://allthings.how/content/images/2024/03/allthings.how-how-to-unprotect-excel-image.png)
 ![Enter Password](https://allthings.how/content/images/2024/03/allthings.how-how-to-unprotect-excel-image-3.png)

4.  To unprotect a workbook, click **Unprotect Workbook** in the same **Review** tab. Enter the password when prompted and click **OK**.
![Unprotect Workbook](https://allthings.how/content/images/2024/03/allthings.how-how-to-unprotect-excel-image-26.png)
![Enter Workbook Password](https://allthings.how/content/images/2024/03/allthings.how-how-to-unprotect-excel-image-27.png)

That’s it! The sheet or workbook is now unprotected.

## Unprotect Excel Workbook Without Password

Sometimes you need to remove workbook structure protection, not just sheet protection. Here’s how:

### Using VBA Code to Unprotect Workbook

1. Open your Excel file with the protected workbook structure.

2. Go to the **Developer** tab in the ribbon. If you don’t see it, you may need to enable it in Excel Options.
![Developer tab](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-49.png)

3.  Click **Visual Basic** to open the VBA editor.

4. In the VBA editor, click **Insert** and then **Module**.
![Insert module](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-29.png)

5.  Paste this code:
```
Sub Shareus()
    ActiveWorkbook.Sheets.Copy
    For Each sh In ActiveWorkbook.Sheets
        sh.Visible = True
    Next
    End Sub
```
6. Press `F5` or click the **Run** button to run the macro.
![run button](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-30.png)

7. A new workbook will open, free from workbook protection, save it and edit as needed.

### Using Zip File Format Trick for Workbook

1. Locate your protected Excel file and make a backup copy first.

2. Rename the original file, changing the extension from `.xlsx` to `.zip`. Confirm if prompted.
 ![Rename to zip](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-31.png)

3. Extract the zip file’s contents to a new folder.
![extract files](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-32.png)

4. Go to the `xl` folder. Find a file called `workbook.xml`.

5.  Right-click on `workbook.xml`, then **Open with** and select **Notepad**.
![Open workbook.xml in notepad](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-35.png)

6.  In Notepad, press `CTRL + F` and search for `<workbookProtection`. Delete the whole tag.
![delete workbook protection tag](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-36.png)

7. Save your changes and close Notepad.

8.  Re-compress the extracted files to a zip archive, keeping the same folder structure.
![re-compress the files](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-38.png)

9.  Rename the zip file back to `.xlsx`. Confirm when asked.
![Rename back to xlsx](https://allthings.how/content/images/wordpress/2021/04/allthings.how-how-to-unprotect-excel-image-39.png)

10. Now, open the Excel file. The workbook structure protection should be gone.

---

These methods should help you unprotect Excel files, even if you forgot the password. Remember to back up your files before you start, just in case. And maybe try a password manager next time!