WPS表格 撤销工作表保护 密码怎么破解 能不能用什么东西查看这个密码
发布网友
发布时间:2022-02-26 19:43
我来回答
共1个回答
热心网友
时间:2022-02-26 21:13
下面是步骤方法:
1、打开需要破解保护密码的Excel文件;
2、依次点击菜单栏上的工具---宏----录制新宏,输入宏名字如:aa;
3、停止录制(这样得到一个空宏);
4、依次点击菜单栏上的工具---宏----宏,选aa,点编辑按钮;
5、删除窗口中的所有字符(只有几个),替换为下面的内容;
从下面英文开始复制:
Option Explicit
Public Sub AllInternalPasswords()
' Breaks worksheet and workbook structure passwords. Bob McCormick
' probably originator of base code algorithm modified for coverage
' of workbook structure / windows passwords and for multiple passwords
'
' Norman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1)
' Modified 2003-Apr-04 by JEM: All msgs to constants, and
' eliminate one Exit Sub (Version 1.1.1)
' Reveals hashed passwords NOT original passwords
Const DBLSPACE As String = vbNewLine & vbNewLine
Const AUTHORS As String = DBLSPACE & vbNewLine & _
"Adapted from Bob McCormick base code by" & _
"Norman Harker and JE McGimpsey"
Const HEADER As String = "AllInternalPasswords User Message"
Const VERSION As String = DBLSPACE & "Version 1.1.1 2003-Apr-04"
Const REPBACK As String = DBLSPACE & "Please report failure " & _
"to the microsoft.public.excel.programming newsgroup."
Const ALLCLEAR As String = DBLSPACE & "The workbook should " & _
"now be free of all password protection, so make sure you:" & _
DBLSPACE & "SAVE IT NOW!" & DBLSPACE & "and also" & _
DBLSPACE & "BACKUP!, BACKUP!!, BACKUP!!!" & _
DBLSPACE & "Also, remember that the password was " & _
"put there for a reason. Don't stuff up crucial formulas " & _
"or data." & DBLSPACE & "Access and use of some data " & _
"may be an offense. If in doubt, don't."
Const MSGNOPWORDS1 As String = "There were no passwords on " & _
"sheets, or workbook structure or windows." & AUTHORS & VERSION
Const MSGNOPWORDS2 As String = "There was no protection to " & _
"workbook structure or windows." & DBLSPACE & _
"Proceeding to unprotect sheets." & AUTHORS & VERSION
Const MSGTAKETIME As String = "After pressing OK button this " & _
"will take some time." & DBLSPACE & "Amount of time " & _
"depends on how many different passwords, the " & _
"passwords, and your computer's specification." & DBLSPACE & _
"Just be patient! Make me a coffee!" & AUTHORS & VERSION
Const MSGPWORDFOUND1 As String = "You had a Worksheet " & _
"Structure or Windows Password set." & DBLSPACE & _
"The password found was: " & DBLSPACE & "$$" & DBLSPACE & _
"Note it down for potential future use in other workbooks by " & _
"the same person who set this password." & DBLSPACE & _
"Now to check and clear other passwords." & AUTHORS & VERSION
Const MSGPWORDFOUND2 As String = "You had a Worksheet " & _
"password set." & DBLSPACE & "The password found was: " & _
DBLSPACE & "$$" & DBLSPACE & "Note it down for potential " & _
"future use in other workbooks by same person who " & _
"set this password." & DBLSPACE & "Now to check and clear " & _
"other passwords." & AUTHORS & VERSION
Const MSGONLYONE As String = "Only structure / windows " & _
"protected with the password that was just found." & _
ALLCLEAR & AUTHORS & VERSION & REPBACK
Dim w1 As Worksheet, w2 As Worksheet
Dim i As Integer, j As Integer, k As Integer, l As Integer
Dim m As Integer, n As Integer, i1 As Integer, i2 As Integer
Dim i3 As Integer, i4 As Integer, i5 As Integer, i6 As Integer
Dim PWord1 As String
Dim ShTag As Boolean, WinTag As Boolean
Application.ScreenUpdating = False
With ActiveWorkbook
WinTag = .ProtectStructure Or .ProtectWindows
End With
ShTag = False
For Each w1 In Worksheets
ShTag = ShTag Or w1.ProtectContents
Next w1
If Not ShTag And Not WinTag Then
MsgBox MSGNOPWORDS1, vbInformation, HEADER
Exit Sub
End If
MsgBox MSGTAKETIME, vbInformation, HEADER
If Not WinTag Then
MsgBox MSGNOPWORDS2, vbInformation, HEADER
Else
On Error Resume Next
Do 'mmy do loop
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
With ActiveWorkbook
.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 .ProtectStructure = False And _
.ProtectWindows = False Then
PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _
Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
MsgBox Application.Substitute(MSGPWORDFOUND1, _
"$$", PWord1), vbInformation, HEADER
Exit Do 'Bypass all for...nexts
End If
End With
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Loop Until True
On Error GoTo 0
End If
If WinTag And Not ShTag Then
MsgBox MSGONLYONE, vbInformation, HEADER
Exit Sub
End If
On Error Resume Next
For Each w1 In Worksheets
'Attempt clearance with PWord1
w1.Unprotect PWord1
Next w1
On Error GoTo 0
ShTag = False
For Each w1 In Worksheets
'Checks for all clear ShTag triggered to 1 if not.
ShTag = ShTag Or w1.ProtectContents
Next w1
If ShTag Then
For Each w1 In Worksheets
With w1
If .ProtectContents Then
On Error Resume Next
Do 'Dummy do loop
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
.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 Not .ProtectContents Then
PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _
Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
MsgBox Application.Substitute(MSGPWORDFOUND2, _
"$$", PWord1), vbInformation, HEADER
'leverage finding Pword by trying on other sheets
For Each w2 In Worksheets
w2.Unprotect PWord1
Next w2
Exit Do 'Bypass all for...nexts
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Loop Until True
On Error GoTo 0
End If
End With
Next w1
End If
MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADER
End Sub
-------------------
复制到横线以上
6、关闭编辑窗口;
7、依次点击菜单栏上的工具---宏-----宏,选AllInternalPasswords,运行,确定两次;
8、 等一会,就会出现以下对话框:这就是Excel密码对应的原始密码(此密码和原先设置的密码都能打开此文档。如果是别人的文档,又想恢复密码设置,就可以用此密码进行保护,就能用设置的密码打开。字母一定要大写):
再点击确定。Excel的原始密码就被清除了。
WPS表格被保护了怎么解除-WPS表格使用教程
1、在WPS表格的顶部菜单栏中,找到“审阅”选项卡,然后点击「撤销工作表保护」按钮。2、如果设置了密码,输入正确的密码后点击确定即可解除保护;如果没有设置密码,直接点击确定即可解除保护。方法二、利用宏代码 1、如果以上方式无效,可能需要使用一些特殊的宏代码来破解保护密码,点击“工具”选项卡,选...
WPS表格被保护忘记密码怎么撤销
1)开启了账号加密:开启后只有加密者本人的账号或被授权的用户才可以打开,其他人将无权限打开。可参考下图解除加密;2)设置了密码加密:可参考下图解除密码;3)「表格(Excel)」取消密码:点击「审阅-撤销工作表/簿保护」4)「文字(Word」取消密码:点击「审阅-限制编辑-停止保护」关注微信公众号「...
WPS Excel文件密码忘了怎么办?
1. 打开受保护的 Excel 文件,输入密码,如果密码错误,会提示“口令不正确”。2. 如果你忘记了密码,可以点击“工具”选项卡中的“保护”按钮,然后选择“删除工作表保护”或“删除工作簿保护”选项。3. 如果文件受到强加的密码保护,你可以使用 WPS Office 提供的“密码破解向导”功能来解除密码保护。
wps考勤表格忘记工作表保护密码怎么撤销工作表保护?
首先,打开你的电子表格应用程序,确保你的工作表格式为.xls或.xlsx,这是接下来操作的关键。第二步,启动宏功能,通常情况下,宏默认已经开启,因此可能无需进行额外操作。如果没有宏功能,请确保在系统设置中开启宏支持。接下来,找到并点击“清除密码”按钮,这个步骤是关键,你将通过它来释放工作表...
wps表格工作表被保护 但是密码忘记了 怎么撤销保护呢
一、把Excel文件的扩展名xlsx修改为Rar。二、Excel文件变成了压缩包。(不如果不显示后辍 ,选中工具栏中的文件扩展名选项)三、双击打开压缩包,找到 xl - Worksheets。四、把受保护的工作表sheet1.xml 拖动复制出来。五、用记事本打开sheet1.xml文件,搜protect快速找到保护代码并删除保护。六、把文件...
excel被保护了怎么查看密码excel被保护了怎么查看密码呢
1、首先先找到有工作表保护密码的Excel表格,然后后缀名称,从演示操作表格.xlsx改为演示操作表格.rar,回车确定。2、然后用压缩文件打开,然后找到下面的路径,xl——worksheets——sheet1.xml(这里设置的保护密码,是sheet1工作表,如果是其他的表格,选择相应的名称即可)。3、然后把从压缩文件里面找到的...
wps表格撤销工作表保护密码破解
1、打开您需要破解保护密码的Excel文件;2、依次点击菜单栏上的工具---宏---录制新宏,输入宏名字如:aa;3、停止录制(这样得到一个空宏);4、依次点击菜单栏上的工具---宏---宏,选aa,点编辑按钮;5、删除窗口中的所有字符(只有几个),替换为下面的内容;从横线下开始复制---OptionExplicitPublic...
WPS表格加密功能在哪WPS如何撤销工作簿密码
1、我们可以设置WPS工作簿和工作表保护密码,在打开的WPS文档里,我们点击导航上面的“审阅”按钮,如下图所示。2、点击后,会显示“保护工作表”和“保护工作簿”等选项。保护工作簿是对所有的工作表进行加密保护。而保护工作表就是对当前的加密进行保护。这里我就用保护工作表来演示。点击保护工作表,...
撤销工作表保护的密码是什么(wps撤销工作表保护的密码是什么)
要撤销保护密码首先要看什么版本的,03版在忘记密码的情况下也是可以撤销密码的,03以上就需要密码才能撤销保护密码了,如果忘记密码首先要做的就是破解出密码才可以。MicrosoftExcel中的密码保护提供了几种类型:利用密码以打开一个文档;利用密码以修改文档;利用密码以取消保护工作表;利用密码以保护工作簿...
wps表格工作表被保护 但是密码忘记了 怎么撤销保护呢?
一、另存为和重建法 首先,用Word 2010打开那个加密文档。 依次单击窗口的“文件另存为”菜单,单击“另存为”对话框右侧的“我的电脑”,再选中列表中的某数据分区(如G盘)。单击“保存类型”右侧的下拉列表箭头,拖动滚动条,找到“纯文本(*.txt)”选项...