MSCBSC 移動(dòng)通信論壇
搜索
登錄注冊
網(wǎng)絡(luò)優(yōu)化工程師招聘專欄 4G/LTE通信工程師最新職位列表 通信實(shí)習(xí)生/應(yīng)屆生招聘職位

  • 閱讀:2834
  • 回復(fù):7
如何破解Excel工作表密碼保護(hù)
jingpengtao
資深元老
鎵嬫満鍙風(fēng)爜宸查獙璇? style=


 發(fā)短消息    關(guān)注Ta 

C友·鐵桿勛章   管理·勤奮勛章   C友·進(jìn)步勛章   精華發(fā)帖   紀(jì)念勛章·七周年   財(cái)富勛章·萬元戶   C友·魅力勛章   活動(dòng)·勞模銀獎(jiǎng)   活動(dòng)·積極勛章   管理·年度杰出勛章   財(cái)富勛章·財(cái)運(yùn)連連   專家·終級勛章   C友·幸運(yùn)勛章   活動(dòng)·設(shè)計(jì)達(dá)人   C友·登錄達(dá)人   C友·活躍勛章   公益·環(huán)保勛章   紀(jì)念勛章·五周年   財(cái)富勛章·富可敵國   活動(dòng)·第一屆通信技術(shù)杯   活動(dòng)·第二屆通信技術(shù)杯   紀(jì)念勛章·六周年   活動(dòng)·攝影達(dá)人   紀(jì)念勛章·八周年  
積分 33495
帖子 5659
威望 30821 個(gè)
禮品券 1636 個(gè)
專家指數(shù) 4080
注冊 2010-4-2
專業(yè)方向  項(xiàng)目管理
回答問題數(shù) 0
回答被采納數(shù) 0
回答采納率 0%
 
發(fā)表于 2011-08-16 21:58:46  只看樓主  QQ

如何破解Excel工作表密碼保護(hù)!

1\打開文件
2\工具-------錄制新宏---輸入名字如:aa
3\停止錄制(這樣得到一個(gè)空宏)
4\工具-------,aa,點(diǎn)編輯按鈕
5\刪除窗口中的所有字符(只有幾個(gè)),替換為下面的內(nèi)容 你復(fù)制吧)
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 & " lease 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 & _
" roceeding 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

6\關(guān)閉編輯窗口
7\工具--------,AllInternalPasswords,運(yùn)行,確定兩次,2分鐘,再確定.OK,沒有密碼了!!





本人試過,絕對可行!很不錯(cuò)的哦!
掃碼關(guān)注5G通信官方公眾號,免費(fèi)領(lǐng)取以下5G精品資料
  • 1、回復(fù)“YD5GAI”免費(fèi)領(lǐng)取《中國移動(dòng):5G網(wǎng)絡(luò)AI應(yīng)用典型場景技術(shù)解決方案白皮書
  • 2、回復(fù)“5G6G”免費(fèi)領(lǐng)取《5G_6G毫米波測試技術(shù)白皮書-2022_03-21
  • 3、回復(fù)“YD6G”免費(fèi)領(lǐng)取《中國移動(dòng):6G至簡無線接入網(wǎng)白皮書
  • 4、回復(fù)“LTBPS”免費(fèi)領(lǐng)取《《中國聯(lián)通5G終端白皮書》
  • 5、回復(fù)“ZGDX”免費(fèi)領(lǐng)取《中國電信5G NTN技術(shù)白皮書
  • 6、回復(fù)“TXSB”免費(fèi)領(lǐng)取《通信設(shè)備安裝工程施工工藝圖解
  • 7、回復(fù)“YDSL”免費(fèi)領(lǐng)取《中國移動(dòng)算力并網(wǎng)白皮書
  • 8、回復(fù)“5GX3”免費(fèi)領(lǐng)取《 R16 23501-g60 5G的系統(tǒng)架構(gòu)1
  • 對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    [充值威望,立即自動(dòng)到帳] [VIP貴賓權(quán)限+威望套餐] 另有大量優(yōu)惠贈(zèng)送活動(dòng),請光臨充值中心
    充值擁有大量的威望和最高的下載權(quán)限,下載站內(nèi)資料無憂
    garyzenger
    銀牌會員
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    紀(jì)念勛章·七周年   公益·環(huán)保勛章   紀(jì)念勛章·十周年  
    積分 3108
    帖子 604
    威望 251334 個(gè)
    禮品券 46 個(gè)
    專家指數(shù) 37
    注冊 2009-6-10
    專業(yè)方向  LTG
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-16 22:24:24 
    用得著這么復(fù)雜嗎,有破解軟件的!

    對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    [立即成為VIP會員,百萬通信專業(yè)資料立即下載,支付寶、微信付款,簡單、快速!]
    jingpengtao
    資深元老
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    C友·鐵桿勛章   管理·勤奮勛章   C友·進(jìn)步勛章   精華發(fā)帖   紀(jì)念勛章·七周年   財(cái)富勛章·萬元戶   C友·魅力勛章   活動(dòng)·勞模銀獎(jiǎng)   活動(dòng)·積極勛章   管理·年度杰出勛章   財(cái)富勛章·財(cái)運(yùn)連連   專家·終級勛章   C友·幸運(yùn)勛章   活動(dòng)·設(shè)計(jì)達(dá)人   C友·登錄達(dá)人   C友·活躍勛章   公益·環(huán)保勛章   紀(jì)念勛章·五周年   財(cái)富勛章·富可敵國   活動(dòng)·第一屆通信技術(shù)杯   活動(dòng)·第二屆通信技術(shù)杯   紀(jì)念勛章·六周年   活動(dòng)·攝影達(dá)人   紀(jì)念勛章·八周年  
    積分 33495
    帖子 5659
    威望 30821 個(gè)
    禮品券 1636 個(gè)
    專家指數(shù) 4080
    注冊 2010-4-2
    專業(yè)方向  項(xiàng)目管理
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-16 22:39:17  只看樓主  QQ
    這是是破解工作表方便簡單,代碼雖然長,但是只要復(fù)制就OK了

    對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    最新通信職位:廣東通信人才網(wǎng) | 北京通信人才網(wǎng) | 上海通信人才網(wǎng) | 南京通信人才網(wǎng) | 西安通信人才網(wǎng) | 重慶通信人才網(wǎng) | 中國通信人才網(wǎng)
    yangyahongever
    銀牌會員
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    積分 3057
    帖子 498
    威望 10028 個(gè)
    禮品券 20 個(gè)
    專家指數(shù) 201
    注冊 2009-7-24
    專業(yè)方向  通信
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-16 22:52:21 
    下個(gè)excel插件就可以,不用每次復(fù)制。。。。。。

    對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    熱點(diǎn): 通信招聘職位 | 網(wǎng)絡(luò)優(yōu)化全集 | WCDMA精品 | TD-SCDMA學(xué)習(xí)資料 | EVDO | MGW媒體網(wǎng)關(guān)資料
    fengying9708
    版主
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    公益·慈善勛章   C友·貢獻(xiàn)勛章   紀(jì)念勛章·七周年   財(cái)富勛章·財(cái)運(yùn)連連   財(cái)富勛章·大富豪   C友·活躍勛章   紀(jì)念勛章·五周年   財(cái)富勛章·富甲一方   紀(jì)念勛章·六周年   紀(jì)念勛章·八周年   紀(jì)念勛章·九周年   紀(jì)念勛章·十周年  
    積分 47205
    帖子 5548
    威望 127031 個(gè)
    禮品券 869 個(gè)
    專家指數(shù) 318
    注冊 2006-10-16
    專業(yè)方向  通信
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-16 22:54:54 
    哈哈,方法很多種,找簡單實(shí)用的就可以了,其實(shí)樓主很辛苦的

    對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    最新通信職位:廣東通信人才網(wǎng) | 北京通信人才網(wǎng) | 上海通信人才網(wǎng) | 南京通信人才網(wǎng) | 西安通信人才網(wǎng) | 重慶通信人才網(wǎng) | 中國通信人才網(wǎng)
    林澤填
    中級會員
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    積分 844
    帖子 71
    威望 20312 個(gè)
    禮品券 10 個(gè)
    專家指數(shù) 192
    注冊 2008-4-13
    專業(yè)方向  通信工程師
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-16 23:07:10 
    爆破最容易,呵呵!不過你的代碼還是蠻實(shí)用的!

    對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    [2分鐘擁有VIP權(quán)限和充足威望,可下載站內(nèi)任何資料] [快速找到一份高薪的通信行業(yè)職位]
    姚鄴
    論壇副管
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    C友·鐵桿勛章   管理·勤奮勛章   C友·進(jìn)步勛章   管理·優(yōu)秀勛章   管理·貢獻(xiàn)勛章   紀(jì)念勛章·論壇周年慶   紀(jì)念勛章·七周年   管理·標(biāo)兵勛章   活動(dòng)·積極勛章   財(cái)富勛章·財(cái)運(yùn)連連   財(cái)富勛章·大富豪   財(cái)富勛章·小財(cái)主   紀(jì)念勛章·三周年   C友·幸運(yùn)勛章   C友·登錄達(dá)人   紀(jì)念勛章·五周年   紀(jì)念勛章·四周年   財(cái)富勛章·富甲一方   財(cái)富勛章·鉆石王老五   C友·五周年壇徽   活動(dòng)·第一屆通信技術(shù)杯   活動(dòng)·第二屆通信技術(shù)杯   紀(jì)念勛章·六周年   紀(jì)念勛章·八周年   紀(jì)念勛章·九周年   紀(jì)念勛章·十周年   紀(jì)念勛章·十二周年  
    積分 22775
    帖子 4447
    威望 147751 個(gè)
    禮品券 1065 個(gè)
    專家指數(shù) 380
    注冊 2009-11-14
    專業(yè)方向  TDL
    來自 刺桐花紅
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-16 23:19:32  QQ
    收藏一下,以后有用啊~

    對本帖內(nèi)容的看法? 我要點(diǎn)評





    前方的路,還有許多我不知道的知識。困難只不過是學(xué)習(xí)中攜帶一點(diǎn)點(diǎn)困惑。學(xué)海無涯,好好利用時(shí)間好好學(xué)習(xí)。
     
    熱點(diǎn): 通信招聘職位 | 網(wǎng)絡(luò)優(yōu)化全集 | WCDMA精品 | TD-SCDMA學(xué)習(xí)資料 | EVDO | MGW媒體網(wǎng)關(guān)資料
    base_305
    高級會員
    鎵嬫満鍙風(fēng)爜宸查獙璇? style=


     發(fā)短消息    關(guān)注Ta 

    紀(jì)念勛章·十周年  
    積分 2117
    帖子 335
    威望 3365070 個(gè)
    禮品券 141 個(gè)
    專家指數(shù) 442
    注冊 2011-7-27
    專業(yè)方向  gsm
    回答問題數(shù) 0
    回答被采納數(shù) 0
    回答采納率 0%
     
    發(fā)表于 2011-08-17 23:26:50 
    恩,先收藏,以后有機(jī)會試試

    對本帖內(nèi)容的看法? 我要點(diǎn)評

     
    熱點(diǎn): 通信招聘職位 | 網(wǎng)絡(luò)優(yōu)化全集 | WCDMA精品 | TD-SCDMA學(xué)習(xí)資料 | EVDO | MGW媒體網(wǎng)關(guān)資料

    快速回復(fù)主題    
    標(biāo)題
    內(nèi)容
     上傳資料請點(diǎn)左側(cè)【添加附件】

    當(dāng)前時(shí)區(qū) GMT+8, 現(xiàn)在時(shí)間是 2025-02-02 18:39:24
    渝ICP備11001752號  Copyright @ 2006-2016 mscbsc.com  本站統(tǒng)一服務(wù)郵箱:mscbsc@163.com

    Processed in 0.612476 second(s), 32 queries , Gzip enabled
    TOP
    清除 Cookies - 聯(lián)系我們 - 移動(dòng)通信網(wǎng) - 移動(dòng)通信論壇 - 通信招聘網(wǎng) - Archiver