电脑部分excel文件受保护怎么破解

发布时间:2024-09-07 点击:73
?
今天和大家分享excel破解受保护文件,为保护文件安全部分excel文档做了受保护操作,如果需要编辑或者更改,我们就需要破解受保护模式。那么电脑部分excel文件受保护怎么破解?其实破解方法不难,接下去一起看下电脑部分excel文件受保护的破解方法。
推荐:最新系统下载
?
具体方法如下:
1、打开你需要破解的受保护文件,点击视图,找到宏选项;
2、点击录制宏,如图 ,输入宏名,可以随意输入,但记住不能是数字;
3、点击确定,创建成功之后,再点击停止录制;
4、之后点击查看宏,找到你刚刚创建的宏,然后点击编辑,把原有代码删除。贴入如下代码
option explicit
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
for i2 = 65 to 66: for i3 = 65 to 66: for i4 = 65 to 66
for i5 = 65 to 66: for i6 = 65 to 66: for n = 32 to 126
with 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 then
pword1 = 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), vbinformation, header
exit do 'bypass all for…nexts
end if
end with
next: next: next: next: next: next
next: next: next: next: next: next
loop until true
on error goto 0
end if
if wintag and not shtag then
msgbox msgonlyone, vbinformation, header
exit sub
end if
on error resume next
for each w1 in worksheets
'attempt clearance with pword1
w1.unprotect pword1
next w1
on error goto 0
shtag = false
for each w1 in worksheets
'checks for all clear shtag triggered to 1 if not.
shtag = shtag or w1.protectcontents
next w1
if shtag then
for each w1 in worksheets
with w1
if .protectcontents then
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
for i2 = 65 to 66: for i3 = 65 to 66: for i4 = 65 to 66
for 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 then
pword1 = 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, header
'leverage finding pword by trying on other sheets
for each w2 in worksheets
w2.unprotect pword1
next w2
exit do 'bypass all for…nexts
end if
next: next: next: next: next: next
next: next: next: next: next: next
loop until true
on error goto 0
end if
end with
next w1
end if
msgbox allclear & authors & version & repback, vbinformation, header
end sub
5、点击确定,会出现两次提示,直接点击确定。之后再执行两次宏。
上述就是电脑部分excel文件受保护的破解方法,虽然步骤比较多,但是操作起来还是比较容易的。
相关教程:受保护的excel怎么复制表格受保护的视图怎么取消如何编辑受保护的表格

mysql怎么查看字段的属性值
高配便宜又好用的WordPress主机
如何查找yum安装的php路径
新顶级域名注册局Radix销售优质域名,2017年狂赚千万!
百度云加速好像没有效果-虚拟主机/数据库问题
域名停放问题-域名及账户问题
远程运维方案选型指南——官网可下载的ZStack私有云平台
云服务器 价格表