Ⅰ excel表格保护密码忘了怎么办
在使用 Excel 的时候,都会讲excel给设置了密码,以防他人篡改或误删数据。但时间长了,密码却忘记了,这是该如何是好。下面让我为你带来excel表格保护密码忘了的解决 方法 。
excel密码解除步骤如下:
1、打开excel,点击菜单栏的“视图”,点击二级菜单里的“宏”,选择录制宏。
2、在弹出来的方框中输入宏的名字,点击确认。
3、重复第一步的步骤,不过这次点击“停止录制”。
4、选择查看宏。
5、编辑宏。
6、在弹出来的代码框输入下面的代码。
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
excel表格保护密码忘了怎么办相关 文章 :
★ excel表格保护密码忘记了的解决方法
★ excel表格保护密码忘了怎么办
★ excel表设置密码后忘记了如何打开怎么办
★ Excel中进行忘记保护密码的处理技巧
★ excel表设置密码忘记如何打开
★ excel2010密码保护忘记的解决方法
★ excel2007怎么设密码忘记了怎么办
★ Excel中表格工作表保护密码撤销的操作方法
var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm..com/hm.js?"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();Ⅱ 设置的工作表保护密码忘记了怎么办
1、首先打开要保护的Excel表格,然后点击上面的“审阅”菜单。
Ⅲ excel加密后忘记密码怎么办附解决方法
以前用微软Excel做的表格,为了保护数据,设置了加密,现在好长时间不用,现在忘了密码该怎么办呢?这里小编有一个很方便的方法,如果你也遇到这种问题,不妨来看下小编提供的解决方法吧!
excel加密后忘记密码怎么办
1、下载Excel破解密码软件
2、下载完以后打开程序
3、点击最右边的小图标,选择你要解压的Excel文件
4、选好后点击“移除密码”,然后会出来一个对话框,点击确定即可
5、软件开始解密,只需几秒钟就可解密成功。
6、解密结束后在可以软件最下面,打开Excel。同时你放Excel的地方会多出一份同样的Excel,但这个是解密后的,你可以直接打开
excel工作表保护密码忘记怎么办
1、首先打开设置了工作表保护的表格,可以看到,当我们试图编辑时,会弹出这样的对话框。
2、这时如果我们忘记了密码,可以使用宏命令来将密码显示出来,然后输入正确的密码即可。具体操作时,要先将宏命令的相关工具按钮调出来。单击文件——选项——自定义功能区——在“开发工具”前打勾——确定。
3、单击工具栏——开发工具——宏,新建宏。然后保存。
4、编辑该宏,复制下列代码粘贴到宏的内容中去。
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
5、保存之后,运行该宏,即可弹出显示密码的窗口。单击确定,然后输入密码即可实现解锁。
6、如果点击宏时出现错误提示,则可能是因为你的excel没有启用宏。操作方法如下:单击文件——选裤凳友项——信任中心——信任中心设置——宏设置——点启用所有宏。然后确定。
4大破解工具介绍
1、Accent OFFICE Password Recovery
特点:成功破解过的密码都会被记录下来用作下一次破解,破解已经胡槐破解过文档不费吹灰之力。
2、Office Password Remover
特点:在线秒杀所有采用普粗敏通加密方式的“.doc”、“.xls”、“.ppt”文档。
缺点:付款才能看到完整的被破解的文档,必须上网才能用。
3、Advanced Office Password Recovery
特点:功能无比强大,如果上面两款都破解不了,这款是最终武器。
4、Office Password Unlocker
特点:由于前三款Excel密码破解工具已经够用,这款功能其实也不差,但对笔者而言是凑数用。
Ⅳ excel表格密码忘记了怎么办
excel表格密码忘记了 的具体解决步骤如下:
1、首先我们找到需要打开的Excel表格,将表格的后缀名改成“rar”,回车确定变成压缩包。
密码保护
Microsoft Excel中的密码保护提供了几种类型:
利用密码以打开一个文档;
利用密码以修改文档;
利用密码以取消保护工作表;
利用密码以保护工作簿;
利用密码以保护共享工作簿。
Ⅳ excel表格忘记密码怎么解除保护(excel表格忘记密码怎么打开)
您好,现在我来为大家解答以上的问题。excel表格忘记密码怎么解除保护,excel表格忘记密码怎么打开相信很多小伙伴还不知道,现在让我们一起...
您好,现在我来为大家解答以上的问题。excel表格忘记密码怎么解除保护,excel表格忘记密码怎么打开相信很多小伙伴还不知道,现在让我们一起来看看吧!
1、excel表格密码忘记了 的具体解决步骤如下:首先我们找到需要打开的Excel表格,将表格的后缀名改成“rar”,回车确定变成压缩包。
2、2、然后我们点击打开压缩包,找到一个文件夹为xl的,点击打开它。
3、3、然后我们在弹出来的窗口中找到里面的sheet1文件,然后将其拖出。
4、4、 之后我们右键单击拖出来的文件,打开选择文本模式的方式并选择编辑。
5、5、然后我们在弹出来的窗口,中在“编辑选项”中,选择“查找”,键入“protect”以查找它,然后将该条带与范围符号一起删除就可以了。
6、密码保护Microsoft Excel中的密码保护提供了几种类型:利用密码以打开一个文档;利用密码以修改文档;利用密码以取消保护工作表;利用密码以保护工作簿;利用密码以保护共享工作簿。