# How to unlock password protected xls and xlsx file if password is unknown?

**URL:** <https://forumautomation.com/t/how-to-unlock-password-protected-xls-and-xlsx-file-if-password-is-unknown/851>\
**Category:** Microsoft Excel Tips\
**Created:** [March 12, 2016, 8:37pm UTC](https://forumautomation.com/t/how-to-unlock-password-protected-xls-and-xlsx-file-if-password-is-unknown/851 "2016-03-12T20:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![automate](https://forumautomation.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@automate](https://forumautomation.com/u/automate)\
**Post date:** [March 12, 2016, 8:37pm UTC](https://forumautomation.com/t/how-to-unlock-password-protected-xls-and-xlsx-file-if-password-is-unknown/851/1 "2016-03-12T20:37:42Z")

</div>

The easiest way to use VBA a code and run the macro.

Step 1.

Press Alt + F11

It will open a new pop up window.

 ![Unlock Microsoft Excel Protected Sheet](https://cdn.forumautomation.com/original/1X/dc52783020859f75228f2ec0132cb6de7206fd32.jpg)

Step 2.

Paste the following script

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 "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

Step 3

Click on “Run” . Wait for some time. You will get the password.

---

<div class="post-metadata">

**Author:** ![ealishamactan](https://forumautomation.com/letter_avatar_proxy/v4/letter/e/8e8cbc/32.png) [@ealishamactan](https://forumautomation.com/u/ealishamactan)\
**Post date:** [July 11, 2017, 7:37pm UTC](https://forumautomation.com/t/how-to-unlock-password-protected-xls-and-xlsx-file-if-password-is-unknown/851/2 "2017-07-11T19:37:55Z")

</div>

Yes dear now too easy to recover Excel password and unlock password protected XLS and XLSX file is you have no idea about your password. You can resolve locked file problem with [Atom TechSoft Excel Password Recovery Software that is easy way to recover lost Excel file password and unlock password protected Excel file with advance and unique technology]

> **[Now Recover XLSX Password with Atom TechSoft Excel Password Recovery software](https://www.atomtechsoft.com/excel-password-recovery.html)**
>
> The Atom TechSoft Excel password recovery application is helps you to recover, remove, creak , break and unlock excel file password. This Free Excel Password unlocker to easy to unlock and open Excel workbook

 ![](https://cdn.forumautomation.com/original/1X/e9ac27a85c588728fbe4715a6589f603b4b63368.PNG)
