如何把excel表的保护撤销?

2024-12-12 18:48:59
推荐回答(3个)
回答1:

在工作表的标签上点击鼠标右键——查看代码——把下面代码粘贴上,然后按F5
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

回答2:

有破解工具的。见附件。

回答3:

1、全选你工作表中的内容,再选菜单栏中的格式项下的“单元格”项。
2、去掉勾选“保护”项内的”锁定,之后“确定”退出。
3、选定你要进行保护的单元格,再选菜单栏中的格式项下的“单元格”项。
4、在“保护”项内,勾选“锁定”之后退出。
5、在菜单“工具”下选“保护”内之“保护工作表”。
6、在打开的窗口内只选定以下二项:“保护工作表及锁定的单元格内容”和下面的”选定未锁定的单元格“后输入密码,确定即可。
7、这样除了这些锁死不能动外,其他的你一样还可以编辑