汉堡包 在Excel中录入过多的重要数据是人们的习惯,因此这些文件都需要利用密码进行保护。但是忘记密码了怎么办呢,下面让小编为你带来excel表设置密码忘记如何打开的解决方法。
excel表设置密码忘记打开步骤:
1. 打开需要破解密码的Excel德德玛简历
2. 按Alt+F11进入VBA编辑界面
3. 插入 -- 模块(Module)
4. 在右边Module的空白编辑区域,复制粘贴下面所有内容
5. F5,运行该VBA命令
---------------------(下面的内容在第四步复制进去)-------------------------颖儿微博
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 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 l.programming newsgroup.
Const ALLCLEAR As String = DBLSPACE The workbook should now be free of all password protection, so make sure you: SAVE IT NOW! and also BACKUP!, BACKUP!!, BACKUP!!! Also, remember that the password was put there for a reason. Dont stuff up crucial formulas or data. Access and use of some data may be an offense. If in doubt, dont.
Const MSGNOPWORDS1 As String = There were no passwords on sheets, or workbook structure or windows. VERSION
Const MSGNOPWORDS2 As String = There was no protection to workbook structure or windows. _
Proceeding to unprotect sheets. VERSION
Const MSGTAKETIME As String = After pressing OK button this will take some time. Amount of time depends on how many different passwords, the passwords, and your computers specification. _
Just be patient! Make me a coffee! VERSION
Const MSGPWORDFOUND1 As String = You had a Worksheet Structure or Windows Password set. _
The password found was: $$ _
Note it down for potential future use in other workbooks by the same person who set this password. _
Now to check and clear other passwords. VERSION
Const MSGPWORDFOUND2 As String = You had a Worksheet password set. The pas
sword found was: $$ Note it down for potential future use in other workbooks by same person who set this password. Now to check and clear other passwords. VERSION
Const MSGONLYONE As String = Only structure / windows protected with the password that was just found. AUTHORS 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 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
发布评论