excel表格锁定了,不记得密码怎么解锁?
1个回答
关注
展开全部
亲,您好,很高兴为您解答,excel表格锁定了,不记得密码怎么解锁?如果您不记得Excel表格的保护密码,可以尝试以下方法来解锁:1.使用空白密码:有时候,Excel表格保护密码可能是空白的。因此,您可以尝试不输入任何密码并尝试打开文件以查看是否可以解锁。2.使用常用密码:如果您曾经在其他Excel表格中使用过相同的密码,则可以尝试在此文件中使用该密码来解锁。3.使用VBA代码:使用VBA代码可以尝试解锁表格。按下“Alt”和“F11”键以打开VBA编辑器,然后单击“插入”>“模块”菜单并将以下代码复制到新模块中: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 =
咨询记录 · 回答于2023-02-26
excel表格锁定了,不记得密码怎么解锁?
亲,您好,很高兴为您解答,excel表格锁定了,不记得密码怎么解锁?如果您不记得Excel表格的保护密码,可以尝试以下方法来解锁:1.使用空白密码:有时候,Excel表格保护密码可能是空白的。因此,您可以尝试不输入任何密码并尝试打开文件以查看是否可以解锁。2.使用常用密码:如果您曾经在其哗辩脊他Excel表格中使用过相同的密码,则可以尝试在此文件中使用该密码来解灶亮锁。3.使用VBA代码:使用VBA代码可以尝试解锁表格。按下“Alt”和乱渗“F11”键以打开VBA编辑器,然后单击“插入”>“模块”菜单并将以下代码复制到新模块中: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 =
保存模块并关闭VBA编辑器。然后按下“Alt”和“F8”键以打开宏对话框并让卖运行新创建的宏。宏运行后,将显示可用的密码。请注意,这仅适用于Excel表格的保护密码,而不是加密密码。如果表樱顷格被加密,则无法使用此方法解锁坦颂逗。