Remove the protection in an excel report

To protect my excel file or sheet, I may put a password so anyone can’t open it or make any modifications. Usually, I put a simple one so I can remember it easily, but in spite of that, it may happen that I forget it. Instead to recreate the sheet or the entire excel file, and instead to use some tools that I can find in internet, I will use this simple method but before, I will recommend to do a backup of the file.

First, I will change the extension of the file from “xlsx” or “xlsm” to “zip”:

excel excel excel

On this popup, just click “yes”:

excel

Double click on it (do not extract it) to get a view like that then double click on the “xl” folder:

excel excel

If I put a password to open the file or to read only, to remove them, I need to edit the “workbook.xml” but meanwhile this file is inside the “zip”, I can’t so I copy it and paste it outside of the “zip”, for instance, in the “pictures” folder. Once done, click on it to select (not double click) then right click to choose “edit in notepad”:

excel

NOTE: if you don’t have this option, click on “open with” and if from here you still can’t see it, click on “choose another app” and look for “notepad”

excel

It shows all code lines of my file:

excel

It is inside where I can remove the read only password and/or the file one:

  • For the password to read only, I will search “filesharing”
    excel Select the first inferior sign before this word until the first superior sign after it then delete the selection:
    excel
  • For the password to open the file, I will search “workbookprotection” and repeat the same process
    excel excel

This is the result:

excel

NOTE: to do it easier and faster, click on “edit -> find”:

excel

I will save and close the file then I will move it inside the “zip” where the original one is located by using “copy” or “cut” option:

excel

This popup appears so select “copy and replace”:

excel

To remove the password of a sheet, double click on the “worksheets” folder:

excel

Here I can see all sheets of my excel file and the one with a protection is “sheet2.xml”: excel

As for “workbook.xml”, I will repeat the same process but in this case, I will search “sheetProtection”:

excel excel

Once done, save and close then move it back inside the “zip” like the other one. Now, I will change back the extension from “zip” to “xlsx” or “xlsm” and the protection has been removed.

excel excel excel

Interesting Topics