Unprotect Excel worksheet

Get help with using AutoHotkey and its commands and hotkeys
nani
Posts: 1
Joined: 22 May 2019, 20:13

Unprotect Excel worksheet

27 May 2019, 00:56

Is there any script available to unprotect worksheet for editing?
Naissery
Posts: 1
Joined: 29 May 2019, 01:10

Re: Unprotect Excel worksheet

29 May 2019, 01:47

Open the worksheet and right-click,select "Unprotect Sheet...."this can only be done if you know the password.
And use professional cracking tools to unprotect Excel worksheet without password.
Such as this: https www.androidphonesoft.com /resources/unprotect-excel-sheet-without-password.html Broken Link for safety
Last edited by Naissery on 02 Jun 2019, 21:02, edited 5 times in total.
User avatar
SirSocks
Posts: 50
Joined: 26 Oct 2018, 08:14

Re: Unprotect Excel worksheet

29 May 2019, 08:10

You can use VBA Code to unprotect your excel sheet.

Code: Select all

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 
Here's a link for more help.
https://www.cocosenor.com/articles/office/how-to-unlock-excel-sheet-for-editing-when-forgot-password.html


Stay away from downloading third party software as they may be malicious.

There you go!
User avatar
sinkfaze
Posts: 609
Joined: 01 Oct 2013, 08:01

Re: Unprotect Excel worksheet

29 May 2019, 08:24

If you are unprotecting a sheet that does not have a password:

Code: Select all

xl :=	ComObjActive("Excel.Application")
 , xl.ActiveSheet.Unprotect

Return to “Ask For Help”

Who is online

Users browsing this forum: ForbidInjustice, Odlanir and 165 guests