Aug 08 2020 04:10 AM - last edited on Nov 09 2023 11:08 AM by
Hi team need support to unprotect my sheet which is password protected and forgot the password
Sep 21 2023 10:16 AM
@NikolinoDE did not work for me. nothing at all happened when I pressed alt + f11
Sep 22 2023 09:38 AM
Sep 24 2023 02:36 AM
@Eviee1265
I get a similar compilation error.... I appreciate Nikolino's efforts to help us, AND his assurance that the code MUST work... maybe with some assistance how to avoid/overcome the compilation error message?
Sep 24 2023 02:54 AM
Sep 30 2023 10:46 AM
Thanks man.
This code solved mine.
Simply remove the password and set a new one.
Cheers!!!
Oct 02 2023 01:17 AM
Sir I have a excel file i have tried but unable to do this and file is so important for us
I request please decrypte it and send back on my mail email address removed for privacy reasons https://docs.google.com/spreadsheets/d/1sYEdkyRTysWxOrE2qMxQagXHN7HBYhcE/edit?usp=sharing&ouid=10336...
Oct 02 2023 11:38 AM
Great! This worked pretty well for me; thank you, @Norman_Harker
Oct 08 2023 08:32 PM - edited Oct 08 2023 08:37 PM
Save as Excel 97-2003
Then open that file. Protect it
Save as xlsx again
Password protect removed..
Oct 08 2023 08:38 PM - edited Oct 08 2023 08:39 PM
Save as Excel 97-2003
Then open that file. Protect it
Save as xlsx again
Password protect removed..
Oct 12 2023 11:27 AM
Oct 12 2023 12:13 PM
Save as Excel 97-2003
Then open that file. Protect it
Save as xlsx again
Password protect removed..
Oct 12 2023 12:22 PM
Oct 12 2023 12:25 PM
Oct 12 2023 06:00 PM
You can choice catpasswd.com recovery password platform, it's very fast and hight success rate @vedangbapna
Oct 18 2023 10:44 PM
Oct 18 2023 10:49 PM
Oct 19 2023 12:58 AM
Oct 20 2023 04:12 AM
@NikolinoDE Fantastic work! Thnaks. For those having erros, move the line together so it reads
.Unprotect Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(n) & Chr(o) & Chr(p) & Chr(q) & Chr(r) & Chr(s) & Chr(t)
Originally it was split to two lines and was causing an error for me
Oct 22 2023 01:54 AM
To insert and run the provided VBA code in Excel, follow these steps:
VBA Code:
Option Explicit
Sub GetPass()
Const a = 65, b = 66, c = 32, d = 126
Dim i#, j#, k#, l#, m#, n#, o#, p#, q#, r#, s#, t#
With ActiveSheet
If .ProtectContents Then
On Error Resume Next
For i = a To b
For j = a To b
For k = a To b
For l = a To b
For m = a To b
For n = a To b
For o = a To b
For p = a To b
For q = a To b
For r = a To b
For s = a To b
For t = c To d
.Unprotect Chr(i) & Chr(j) & Chr(k) & Chr(l) & Chr(m) & Chr(n) & Chr(o) & Chr(p) & Chr(q) & Chr(r) & Chr(s) & Chr(t)
Next t
Next s
Next r
Next q
Next p
Next o
Next n
Next m
Next l
Next k
Next j
Next i
MsgBox "Finished"
End If
End With
End Sub
This VBA code is designed to brute-force the password for a protected worksheet. It attempts various combinations of characters to unprotect the sheet. When a successful password is found, it will display a message with the password.
Please note that using this code to crack a password may be against your organization's policies or even illegal in some jurisdictions. Ensure you have the appropriate permissions before using this code.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.
Oct 26 2023 12:11 PM
I opened my excel workbook, then Visual Basic. Where do I then paste the code you provided?
Thanks in advance for being so helpful.
- Randy