版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、参考医学 在日常工作中,大家有时会遇到过这样的情况:使用excel编制的报表、表格、程序等,在单元格中设置了公式、函数等,为了防止其他人修改您的设置或者防止您自己无意中修改,您可能会使用excel的工作表保护功能,但时间久了保护密码容易忘记,这该怎么办?有时您从网上下载的excel格式的小程序,您想修改,但是作者加了工作表保护密码,怎么办?您只要按照以下步骤操作,excel工作表保护密码瞬间(稍微有点夸张)即破!步骤阅读百度经验: 工具/原料· 待破解的excel工作表百度经验: 方法/步骤1. 1打开您需要破解的excel文件,如图所示:步骤阅读2. 2依次点击菜单栏上的
2、工具-宏-录制新宏;步骤阅读3. 3输入宏名字(ps:打击积极性啊!)如:易尔拓,然后停止录制(这样得到一个空宏,为后面添加vb代码做准备);步骤阅读4. 4依次点击菜单栏上的工具-宏-宏,选易尔拓,点编辑按钮;删除窗口中的所有字符,替换为下面的内容;option explicitpublic sub allinternalpasswords()' breaks worksheet and workbook structure passwords. bob mccormick' probably originator of base code algorithm modifie
3、d 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 origi
4、nal passwordsconst dblspace as string = vbnewline & vbnewlineconst 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
5、version as string = dblspace & "version 1.1.1 2003-apr-04"const repback as string = dblspace & "please report failure " & _"to the gramming newsgroup."const allclear as string = dblspace & "the workbook should " &
6、_"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 " & _&
7、quot;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 " &
8、_"sheets, or workbook structure or windows." & authors & versionconst msgnopwords2 as string = "there was no protection to " & _"workbook structure or windows." & dblspace & _"proceeding to unprotect sheets." & authors & versioncons
9、t 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." & db
10、lspace & _"just be patient! make me a coffee!" & authors & versionconst msgpwordfound1 as string = "you had a worksheet " & _"structure or windows password set." & dblspace & _"the password found was: " & dblspace & "$"
11、; & 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 & versionconst msgpwordfound2 as string = "you h
12、ad 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
13、 password." & dblspace & "now to check and clear " & _"other passwords." & authors & versionconst msgonlyone as string = "only structure / windows " & _"protected with the password that was just found." & _allclear & author
14、s & version & repbackdim 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 integer, i5 as integer, i6 as integerdim pword1 as stringdim shtag as boolean, wintag as boo
15、leanapplication.screenupdating = falsewith activeworkbookwintag = .protectstructure or .protectwindowsend withshtag = falsefor each w1 in worksheetsshtag = shtag or w1.protectcontentsnext w1if not shtag and not wintag thenmsgbox msgnopwords1, vbinformation, headerexit subend ifmsgbox msgtaketime, vb
16、information, headerif not wintag thenmsgbox msgnopwords2, vbinformation, headerelseon error resume nextdo '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: for i1 = 65 to 66for i2 = 65 to 66: for i3 = 65 to 66: for i4 = 65 to 66for i5 = 65 to 6
17、6: 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(i6) & chr(n)if .protectstructure = false and _.protectwindows = false thenpword1 = chr
18、(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, headerexit do 'bypass all for.nextsend ifend withnext: n
19、ext: next: next: next: nextnext: next: next: next: next: nextloop until trueon error goto 0end ifif wintag and not shtag thenmsgbox msgonlyone, vbinformation, headerexit subend ifon error resume nextfor each w1 in worksheets'attempt clearance with pword1w1.unprotect pword1next w1on error goto 0s
20、htag = falsefor each w1 in worksheets'checks for all clear shtag triggered to 1 if not.shtag = shtag or w1.protectcontentsnext w1if shtag thenfor each w1 in worksheetswith w1if .protectcontents thenon error resume nextdo 'dummy do loopfor i = 65 to 66: for j = 65 to 66: for k = 65 to 66for l
21、 = 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) & 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) &
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 城市拆迁补偿合同范本
- 土地租用补偿协议合同
- 土地流转协议解除合同
- 地区代理合作合同范本
- 商业拍摄年度合同范本
- 城市亮化灯饰合同范本
- 团购合作协议合同范本
- 外墙保温转让合同范本
- 墙纸布艺购销合同范本
- 国建设用地交付协议书
- 2025北京经济技术开发区城市运行局招聘职能部门安全生产专职安全员5人考试模拟试题及答案解析
- 2025陕西延安市安塞区总工会招聘工会社会工作者8人考试参考试题及答案解析
- 湖南省部分校2025-2026学年高二上学期10月联考语文试题(含答案)(解析版)
- 2025年广东省中考英语试卷深度评析及2026年备考策略
- 2025至2030年中国智慧实验室建设行业市场运营态势及投资前景研判报告
- (2025)全市党员干部党规党纪廉政知识竞赛题库及答案
- 定额〔2025〕1号文-关于发布2018版电力建设工程概预算定额2024年度价格水平调整的通知
- 家政清洁操作规范及清洁标准
- 数据中心(机房)施工方案
- Compass2010海船规范轴系扭转振动计算
- 浅谈IP技术在铁路SCADA系统中的运用
评论
0/150
提交评论