谁能帮我破解一个受保护的Excel工作表?
发布网友
发布时间:2022-05-06 08:30
我来回答
共2个回答
热心网友
时间:2022-06-29 03:20
2007以上版本的文件没办法
还有你这个截图是快捷方式的追问
就是2007版啊,能不能破解?
热心网友
时间:2022-06-29 03:20
是 excel打开的密码还是保护工作表的密码?追问
追答07版的一样可以,我都试过:
工作表保护的密码是很脆弱的,下面代码就可以的.
在表中建一个按钮CommandButton,把以下代码复制进去,再点下按钮,几秒就搞定.
Private Sub CommandButton1_Click()
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
If ActiveSheet.ProtectContents = False Then
MsgBox "该工作表没有保护密码!"
Exit Sub
End If
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 "已经解除了工作表保护!"
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub