




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、excel表设置密码忘记如何打开在Excel中录入过多的重要数据是人们的习惯,因此这些文件都 需要利用密码进行保护。但是忘记密码了怎么办呢,下面让小编为你 带来excel表设置密码忘记如何打开的解决方法。excel表设置密码忘记打开步骤:L打开需要破解密码的Excel2 .按Alt+Fll进入VBA编辑界面3 .插入-模块(Module)4 .在右边Module的空白编辑区域,复制粘贴下面所有内容5 . F5 ,运行该VBA命令(下面的内容在第四步复制进 去)Option ExplicitPublic Sub AIIInternalPasswords()Breaks worksheet and
2、 workbook structure passwords. Bob McCormickprobably originator of base code algorithm modified for coverageof workbook structure / windows passwords and formultiple passwordsNorman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1)Modified 2003-Apr-04 by JEM: All msgs to constants, andeliminate one
3、Exit Sub (Version 1.1.1)Reveals hashed passwords NOT original passwordsConst DBLSPACE As String = vbNewLine vbNewLine Adapted from Bob McCormick base code by Norman Harker and JE McGimpseyConst HEADER As String = AlllnternalPasswords User MessageConst VERSION As String = DBLSPACE Version 1.1.1 2003-
4、Apr-04Const REP BACK As String = DBLSPACE Please report failure to the gramming 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 th
5、e 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 MSGN0PW0RDS1 As String = There were no passwords on sheets, or workbook structure or windows. VERSIONConst MSGNOPWORDS2 As String = There was no prote
6、ction to workbook structure or windows. _Proceeding to unprotect sheets. VERSIONConst 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
7、! VERSIONConst 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. VERSIONConst MSGPWORDFOUND2 As Strin
8、g = You had a Worksheet password set The password 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. VERSIONConst MSGONLYONE As String = Only structure / windows protected with the password that was just
9、 found.AUTHORS REPBACKDim wl As Worksheet w2 As WorksheetDim i As Integer; j As Integer; k As Integer; I As IntegerDim m As Integer; n As Integer; il As Integer; i2 As IntegerDim i3 As Integer; i4 As Integer; i5 As Integer; 16 As IntegerDim PWordl As StringDim ShTag As Boolean, WinTag As BooleanAppl
10、ication.ScreenUpdating = FalseWith ActiveWorkbookWinTag = .ProtectStructure Or .ProtectWindowsEnd WithShTag = FalseFor Each wl In WorksheetsShTag = ShTag Or wl.ProtectContentsNext wlIf Not ShTag And Not WinTag ThenMsg Box MSGNOPWORDS1, vblnformation, HEADERExit SubEnd IfMsgBox MSGTAKETIME, vblnforma
11、tion, HEADERIf Not WinTag ThenMsgBox MSGNOPWORDS2, vblnformationz HEADER日seOn Error Resume NextDo dummy do loopFor i = 65 To 66: Forj = 65 To 66: For k = 65 To 66For I = 65 To 66: For m = 65 To 66: For il = 65 To 66For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66For i5 = 65 To 66: For i6 = 65
12、 To 66: For n = 32 To 126With ActiveWorkbook.Unprotect Chr(i) Chr(k) Chr(m) Chr(i2) Chr(i4)Chr(i6) Chr(j) Chr(l) Chr(il) Chr(i3) Chr(i5) Chr(n)MsgBox Application.Substitute(MSGPWORDFOUNDl, _$, PWordl), vblnformation, HEADERExit Do Bypass all for.nextsEnd IfEnd WithNext: Next: Next: Next: Next: NextN
13、ext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfIf WinTag And Not ShTag ThenMsgBox MSGONLYONE, vblnformation, HEADERExit SubEnd IfOn Error Resume NextFor Each wl In WorksheetsAttempt clearance with PWordlwl.Unprotect PWordlNext wlOn Error GoTo 0ShTag = FalseFor Each wl In Worksh
14、eetsChecks for all clear ShTag triggered to 1 if notShTag = ShTag Or wl-ProtectContentsNext wlIf ShTag ThenFor Each wl In WorksheetsWith wlIf .ProtectContents ThenOn Error Resume NextDo Dummy do loopFor i = 65 To 66: Forj = 65 To 66: For k = 65 To 66For I = 65 To 66: For m = 65 To 66: For il = 65 To
15、 66For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126.Unprotect Chr(i) Chr(k) Chr(m) Chr(i2) _Chr(i4) Chr(i6) Chr(j) Chr(l) Chr(il) Chr(i3) Chr(i5)Chr(n)Msg Box Application.Substitute(MSGPWORDFOUND2/_$, PWordl), vblnformation, HEADERleverage finding Pword by trying on other sheetsFor Each w2 In Worksheetsw2. Un protect PWord 1Next w2Exit Do Bypass all for.nextsEnd IfNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Erro
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工厂员工安全用电培训课件
- 五、用户洞察类报告:2025年短视频创作者内容创作趋势研究
- 2025年世界法律日知识竞赛题库及答案
- 工信局安全消防培训课件
- hr系统使用管理办法
- 行政文件管理办法武汉
- 网游管理办法谁颁布
- 统计协统员管理办法
- 驿马河公园管理办法
- 铁矿采矿工程验收标准方案
- (2025年标准)出资收车协议书
- 2025-2026学年外研版(三起)(2024)小学英语四年级上册教学计划及进度表
- 《家具与陈设设计》课件(共十章)
- 高一新生入学家长会校长讲话:携手启航新篇章共育英才向未来
- 胎盘早剥病例汇报
- 湖北省天门市市级名校2026届中考一模语文试题含解析
- 2025年新疆维吾尔自治区辅警招聘考试考试试题库含答案详解(新)
- 2025年四川省高考化学试卷真题
- 2025年农行招聘笔试题目及答案(可下载)
- 2025年内蒙古中考道德与法治真题解读及答案讲评(课件)
- 乒乓球基础教学课件
评论
0/150
提交评论