溜溜问答 > 日常办公 > Excel > Excel保护密码忘了怎么办?
高傑西
高傑西
邀请你来回答
59人阅读 2022-01-12

Excel保护密码忘了怎么办?

好象是有人故意趁我不在位置上设置的,因为我没弄过这玩意.各位高手帮帮忙,
我要回答
5个回答

马上hi我,马上帮你破解

查看全部
2022-01-12
回复 采纳

密码忘了好像是没办法喽

查看全部
2022-01-12
回复 采纳

你可以在网上找一下,好象有破解Excel密码的软件,不过不知道管不管用.

查看全部
2022-01-12
(2) 回复 采纳

保护工作表的密码? 网络上有一段vb语句,(找不到我可以给你),复制到你的工作表中,运行,几分钟后就好了

查看全部
2022-01-12
回复 采纳

你的问题解决起来比较复杂。一些朋友故弄玄虚,什么帮你破解,代码忘记了,其实是没有用的!

建议:使用我的方法:
1.工具---宏---录制新宏---(随便起个名字)---确定
2.停止录制
3.工具---宏---宏---(找到刚才命名那个宏)--- 编辑---(将下面的代码一个不剩复制粘贴)---退出
4.工具---宏---宏---执行刚才的宏
等候一段时间,出来后另存即可。

option explicit

public SUb allinternalpasSWords()
' Breaks worksheet and workbook structure pasSWords. bob mCCormick
' Probably originator of base code algorithm modified 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 original pasSWords
const dblspace as string = vbnewline & vbnewline
const 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 version as string = dblspace & "version 1.1.1 2003-aPR-04"
const repback as string = dblspace & "please report fAIlure " & _
"to the Microsoft.public.Excel.Programming newsgroup."
const allclear as string = dblspace & "the workbook should " & _
"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 " & _
"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 " & _
"sheets, or workbook structure or Windows." & Authors & version
const msgnopWords2 as string = "there was no Protection to " & _
"workbook structure or Windows." & dblspace & _
"Proceeding to unProtect sheets." & Authors & version
const 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." & 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 potential 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: " & _
dblspace & "$$" & dblspace & "note it down For potential " & _
"future use in other workbooks by same person who " & _
"set this pasSWord." & dblspace & "now to check and clear " & _
"other pasSWords." & Authors & version
const msgonlyone as string = "only structure / Windows " & _
"Protected with the pasSWord that was just found." & _
allclear & Authors & version & repback
dim w1 as worksheet, w2 as worksheet
dim i as integer, j as integer, k as integer, l as integer
dim m as integer, n as integer, i1 as integer, i2 as integer
dim i3 as integer, i4 as integer, i5 as integer, i6 as integer
dim pWord1 as string
dim shtag as boolean, Wintag as boolean

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

查看全部
2022-01-12
回复 采纳

相关问题

Excel密码忘了怎么办?
共4条回答 >
Hayley June 🍁: 1、新建一个Excel文件“book1”,在工具栏空白位置,任意右击,选择viSUalbasic项,弹出viSUalbasic工具栏:2、在viSUalbasic工具栏中,点击“录制”按钮,弹出“录制新宏”对话框,选择“个人宏工作簿”:3、选择“个人宏工作簿”后按确定,弹出如下“暂停”按钮,点击停止:4、在viSUalbasic工具栏中,点击“编辑”按钮:5、点击“编辑”按钮后,弹出如下图的编辑界面:找到“vbaProject(personal.xls)-模块-模块1(也可能是模块n-其他数字)....
回复
Excel工作表保护密码忘了怎么破解?
共2条回答 >
兰菲兒运营部: Excel工作表保护密码破解方法:1\打开文件2\工具---宏----录制新宏---输入名字如:aa3\停止录制(这样得到一个空宏)4\工具---宏----宏,选aa,点编辑按钮5\删除窗口中的所有字符(只有几个),替换为下面的内容:(复制吧)6\关闭编辑窗口7\工具---宏-----宏,选allinternalpasSWords,运行,确定两次,等2分钟,再确定.ok,没有密码了!!内容如下:publicSUballinternalpas....
(1671) 回复
Excel表格工作表保护密码忘了怎么办?
共1条回答 >
|楓。: 首先打开电脑里带有密码保护的工作表,双击内容会提示图表在受保护中,无法进行更改,请撤销工作表保护。可以先选中表格中的全部内容,按下ctrl+c进行复制,再新建一个工作表,按下ctrl+v进行粘贴,双击粘贴的内容就可进行更改或其他操作了。
回复
工作表保护密码忘了怎么办?
共1条回答 >
Eatom: 第一步,先找到有工作表保护密码的Excel表格,然后后缀名称,从演示操作表格.xlsx改为演示操作表格.rar,如果有提示可以暂时忽视,影响不大。第二步,用压缩文件打开,然后找到下面的路径,xl——worksheets——sheet1.xml(这里设置的保护密码,是sheet1工作表,如果是其他的表格,选择相应的名称即可)。第三步,把从压缩文件里面找到的sheet1.xml文件,然后拖拽出来,位置可以随意,但是最好是方便找到的地方,要进行修改。第四步,sheet1.xml文件打开方式选择用记事本....
回复
解除Word文件保护密码忘了怎么办?
共1条回答 >
佘迎春: 解决方法:一、首先在word的停止保护页面,点击文件中的另存为的按钮。二、进入另存为的页面后,我们选择另存为HTML格式的文件。三、选择HTML格式的文件后,点击保存按钮。四、点击保存按钮后,我们看到Word文档变成了HTML文件。五、通过打开方式,选择记事本进行打开HTML文件。六、记事本打开文件后,就能在记事本中使用查找的功能,输入PASSWORD来找到密码了。
(3) 回复
发表成功!
感谢您的分享!
好的