Unlock Excel Spreadsheet With VBA Code (For Excel 2010 and Lower)
Unlock Excel Spreadsheet With VBA Code (For Excel 2010 and Lower)
If you are using Excel 2010 or older version, you can unlock a password-protected sheet with the
following macro.
1. Open your Excel document and switch to the password-protected sheet (it should be
active when you run the macro).
2. Press Alt + F11 to open the Visual Basic Editor.
3. Right-click the workbook name on the left pane (Project-VBAProject pane) and select
Insert > Module from the context menu.
4. In the window that appears, paste in the following code:
Sub PasswordBreaker()
'Breaks worksheet password protection.
Exit Sub
End If
5. Press F5 or click the Run button on the toolbar and wait a couple of minutes.
6. The macro will report a cracked password, which is not the original one (always some
combination of A's and B's), but nevertheless it works. You do not need to remember this
fake password or enter it anywhere. Simply click OK and the sheet is unprotected!