How to remove an excel password without knowing it

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
82,641
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 16, 2009

This video shows how to remove an excel protected sheet without even having knowledge about the password.

Code:

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)
ActiveWorkbook.Sheets(1).Select
Range("a1").FormulaR1C1 = 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

---
Good luck!

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (dualbreathe)

  • Hi I got an excel file which has some vba code but i do not have password. I want to make small modifications in the code. I pressed alt + f11 but there is a vba password protection how do i remove it

  • @patanwalahussain you can't.. once it's locked from that your excel would be locked. im sorry. i can't help you there.

  • not clear

  • @hpxz look at my other video for 2007

  • Hi there,doesnt show up in 'macro name' (though name is visible in the drop down box below...im using excel 2007) so unable to run it ...any suggestions

    thanks in advance

  • /watch?v=MGZjRwpSjUQ

    Use that if your using excel 2007

see all

All Comments (48)

Sign In or Sign Up now to post a comment!
  • Thank you! I appreciate it!

  • Thanx works

  • That code's overcomplicated, I did it in about 5 lines, and it was much simpler. Check out my vid. The point is, the excel sheet is locked against an algorithm to which certain combinations of random letters and numbers will eventually unlock it. My solution was to do exactly that, I tried different random numbers and letters combinations to find the fastest way as well. So I haven't seen a better way than in my vid.

  • Thanks man, you are a genius. God Bless You :D

  • For people like me who don't know what they're doing like me:

    1. Go to mcgimpsey .co m / excel/ removepwords. html

    2. Download "allinternalpasswords.xls" located on above page

    3. Open workbook (it will be blank with no cells, this is ok). Go to add-in's tab and click"Remove passwords" (this wont work at first but this is ok)

    4. Make sure all macros are enabled (google it)

    5. Open protected workbook - go to "Add-Ins" tab on ribbon - click "Remove passwords"

    6. Next etc

    Hope this helps

  • Thank You, Merci Beaucoup, 留言.Great Work, Finally I will be able to modify the workbook

  • WOW, that's works!!! Thanks.

  • @patanwalahussain Use a hex editor, search for DPB and replace with DPx. Save and reopen in Excel with no VBA project password.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more