资源描述:
《如何破解excel写保护》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Excel表格密码保护的解除方法表格受密码保护时,我们修改数据Excel弹出“您试图更改的单元格或图表受保护,因而是只读的。若要修改受保护单元格或图表,请先使用‘撤消工作表保护’命令(在‘审阅’选项卡的‘更改’组中)来取消保护。可能会提示您输入密码。这时候我们可以用VBA宏代码破解法来破解表格保护密码: 第一步:Office2003打开该文件,先解除默认的“宏禁用”状态,方法是点击工具栏下的“选项”状态按钮,打开“MicrosoftOffice安全选项”窗口,选择其中的“启用此内容”,“确定”。再切换到“
2、视图”选项卡,点击“宏”→“录制宏”,出现“录制新宏”窗口,在“宏名”定义一个名称为:PasswordBreaker,点击“确定”退出;Office2007默认是不显示开发工具栏的,在excel窗口最顶端右键点击“customequickaccesstool<自定义快捷工具栏>”---》在新窗口中点击“Popular<常用>”---》选择右侧的“showdevelopertabintheribbon”,确定;在新出现的developer工具栏,点击“macrosecurity”,然后选择新窗体中的“ena
3、bleallmacros(notrecommands...)”第二步:再点击“宏”→“查看宏”,选择“宏名”下的“PasswordBreaker”并点击“编辑”,打开“MicrosoftVisualBasic”编辑器,用如下内容替换右侧窗口中的所有代码:SubPasswordBreaker() DimiAsInteger,jAsInteger,kAsInteger DimlAsInteger,mAsInteger,nAsInteger20currencydeposit,weprescribeapass
4、onaregularbasis,qilucardaccountonaregularbasis),certificatebondsandsavingsbonds(electronic);3.notdrawnonabanksavingscertificate,certificatebondsapplyformortgageloans,acceptingonlythelender Dimi1AsInteger,i2AsInteger,i3AsInteger Dimi4AsInteger,i5AsIntege
5、r,i6AsInteger OnErrorResumeNext Fori=65To66:Forj=65To66:Fork=65To66 Forl=65To66:Form=65To66:Fori1=65To66 Fori2=65To66:Fori3=65To66:Fori4=65To66 Fori5=65To66:Fori6=65To66:Forn=32To126 ActiveSheet.Unprotect_chr(i)&_chr(j)&_chr(k)&_ Chr(l)&_chr(m)&_ch
6、r(i1)&_chr(i2)&_chr(i3)&_ Chr(i4)&_chr(i5)&_chr(i6)&_chr(n) IfActiveSheet.ProtectContents=FalseThen MsgBox"Oneusablepasswordis"&_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.Sh
7、eets(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) ExitSub EndIf Next:Next:Next:Next:Next:Next Next:Next:Next:Next:Next:Next EndSub 20currencydeposit,wepre
8、scribeapassonaregularbasis,qilucardaccountonaregularbasis),certificatebondsandsavingsbonds(electronic);3.notdrawnonabanksavingscertificate,certificatebondsapplyformortgageloans,acceptingonlythelender第三步:再点击“宏”→“查看宏”