下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、可编辑Excel中如何破解 “撤销工作表保护密码 ”并获取原始密码一、 保护工作表的方法1、 全选定工作表 右击设置单元格格式找到保护将锁定和隐藏两个的勾去掉;2、将要保护的工作表单元格选定右击设置单元格格式找到保护将锁定和隐藏两个的勾打上;3、 点菜单栏的工具中的保护里的保护工作表将保护工作表及锁定 的单元内容打上勾,下选允许此工作表的所有用户选定未锁定的单元格打上勾 二、Excel工作表保护密码破解方法(如果 Excel 文件的打开密码忘记了, 且密码是 6 位数以内的数字, 可 用以下步骤 解开(关掉所有程序,为了速度):新开一 Excel,同时按 Alt 和 F11,进入 VBA 界面
2、,点菜单上的 插入,模块,在新出来的窗口粘贴一下代码:然后在此界面直接按 F5运行此宏,选择文件,等啊等(看密码长度 了)1 、打开您需要破解保护密码的 Excel 文件;2、依次点击菜单栏上的工具 - 宏- 录制新宏,输入宏名字如 :aa;3 、停止录制 (这样得到一个空宏 );4、 依次点击菜单栏上的工具 -宏-宏选 aa,点编辑按钮;5、删除窗口中的所有字符 (只有几个 ),替换为下面的内容; 从横线下开始复制Option ExplicitPublic Sub AllInternalPasswords() Breaks worksheet and workbook structure p
3、asswords. Bob McCormick probably originator of base code algorithm modified for coverage of workbook structure / windows passwords and for multiple passwordsNorman 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 (Versio
4、n 1.1.1)可编辑 Reveals hashed passwords NOT original passwordsConst DBLSPACE As String = vbNewLine & vbNewLineConst AUTHORS As String = DBLSPACE & vbNewLine & _Adapted from Bob McCormick base code by & _Norman Harker and JE McGimpseyConst HEADER As String = AllInternalPasswords User Mes
5、sageConst VERSION As String = DBLSPACE & Version 1.1.1 2003-Apr-04Const REPBACK 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,
6、 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. Dont stuff up crucial formulas & _or data. & DBLSPACE & Access and
7、 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. & AUTHORS & VERSIONConst MSGNOPWORDS2 As String = There was no protection to & _ workbook structure or windows. & D
8、BLSPACE &Proceeding to unprotect sheets. & AUTHORS & VERSIONConst 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 computers specificatio
9、n. & 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 potenti
10、al 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: &
11、 _ DBLSPACE & $ & DBLSPACE & Note itdown for potential & _ future use in other workbooks by same person who & _ set this password. & DBLSPACE & Now tocheck and clear & _ other passwords. & AUTHORS & VERSIONConst MSGONLYONE As String = Only structure / windows
12、& _ protected with the password that was just found. & _ALLCLEAR & AUTHORS & VERSION & REPBACK Dim w1 As Worksheet, w2 As WorksheetDim i As Integer, j As Integer, k As Integer, l As IntegerDim m As Integer, n As Integer, i1 As Integer, i2 As IntegerDim i3 As Integer, i4 As Intege
13、r, i5 As Integer, i6 As IntegerDim PWord1 As StringDim ShTag As Boolean, WinT ag As BooleanApplication.ScreenUpdating = FalseWith ActiveWorkbookWinT ag = .ProtectStructure Or .ProtectWindowsEnd WithShTag = FalseFor Each w1 In WorksheetsShTag = ShT ag Or w1.ProtectContentsNext w1If Not ShT ag And Not
14、 WinT ag ThenMsgBox MSGNOPWORDS1, vbInformation, HEADERExit SubEnd IfMsgBox MSGTAKETIME, vbInformation, HEADERIf Not WinTag ThenMsgBox MSGNOPWORDS2, vbInformation, HEADERElseOn Error Resume Next可编辑Do dummy do loopFor i = 65 To 66: For j = 65 To 66: For k = 65 To 66For l = 65 To 66: For m = 65 To 66:
15、 For i1 = 65 To 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 126With ActiveWorkbook .Unprotect Chr(i) & Chr(j) & Chr(k) & _Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _Chr(i3) & Chr(i4) & Chr(i5) & Chr(
16、i6) & Chr(n)If .ProtectStructure = False And _.ProtectWindows = False ThenPWord1 = 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
17、), vbInformation, HEADERExit Do Bypass all for.nextsEnd IfEnd WithNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfIf WinT ag And Not ShT ag ThenMsgBox MSGONLYONE, vbInformation, HEADERExit SubEnd If可编辑On Error Resume NextFor Each w1 In Workshee
18、tsAttempt clearance with PWord1 w1.Unprotect PWord1Next w1On Error GoTo 0ShTag = FalseFor Each w1 In WorksheetsChecks for all clear ShT ag triggered to 1 if not.ShTag = ShT ag Or w1.ProtectContentsNext w1If ShTag ThenFor Each w1 In WorksheetsWith w1If .ProtectContents ThenOn Error Resume NextDo Dumm
19、y do loopFor i = 65 To 66: For j = 65 To 66: For k = 65 To 66For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 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(j) & Chr(k) & _Chr(l) & Chr(m) &
20、 Chr(i1) & Chr(i2) & Chr(i3) & _Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)If Not .ProtectContents ThenPWord1 = 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, HEADERleverage finding Pword by trying on other sheetsFor Each w2 In Worksheetsw2.Unprotect PWord1Next w2Exit Do Bypass all for.nextsEnd IfNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: Nex
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 44809-2024物联网工业物联网系统设备兼容性要求和模型
- GB/T 44802-2024柔性直流输电用绝缘栅双极晶体管(IGBT)驱动器技术规范
- 高中历史 第一单元 从“朕即皇帝”到“主权在民”第1节 欧洲的君主专制教案 岳麓版选修2
- 2024秋五年级语文上册 第四单元 15 小岛教案 新人教版
- 2023六年级数学上册 6 百分数教案 新人教版
- 湖南省衡阳市高中数学 第一章 集合与函数概念 1.3 函数的基本性质 1.3.1 单调性与最大(小)值教案 新人教A版必修1
- 八年级地理上册 第二章 第三节 气候与人类活动教案1 中图版
- 2024-2025学年高中化学 第一章 物质结构元素周期律 第二节 元素周期律第3课时教案1 新人教版必修2
- 租用家庭氧气瓶合同(2篇)
- 棕榈油供销合同(2篇)
- 华为鸿蒙系统
- 中国城市代码对照表
- 黑水虻处理餐厨垃圾与畜禽粪便的资源化循环利用项目可行性研究报告
- 大学生劳动教育完整PPT全套教学课件
- 国网基建各专业考试题库大全-计划专业(考题汇总)
- 概率论与数理统计智慧树知到答案章节测试2023年中国农业大学
- 六顶思考帽与创新思维训练
- 关于小学科学大单元教学设计的思考
- 模具加工计划进度表-05
- 数学新课程标准的核心概念有哪些?结合教学实践谈谈你的认识
- 红楼梦5000字论文
评论
0/150
提交评论