




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Excel 中如何破解“撤銷工作表保護密碼”并獲取原始密碼一、保護工作表的方法1 、 全選定工作表右擊 設(shè)置單元格格式 找到保護將鎖定和 隱藏 兩個的勾去掉;2、將要保護的工作表單元格選定右擊設(shè)置單元格格式 找到保護將 鎖定 和 隱藏兩個的勾打上;3 、 點菜單欄的工具 中的保護里的 保護工作表將保護工作表及鎖定的單元內(nèi)容打上勾,下選允許此工作表的所有用戶選定未鎖定的單元格打上勾二、Excel 工作表保護密碼破解方法(如果Excel 文件的打開密碼忘記了,且密碼是6 位數(shù)以內(nèi)的數(shù)字,可用以下步驟解開(關(guān)掉所有程序,為了速度):新開一Excel ,同時按Alt 和 F11 ,進入 VBA 界面,
2、點菜單上的插入,模塊,在新出來的窗口粘貼一下代碼:然后在此界面直接按F5 運行此宏,選擇文件,等啊等(看密碼長度了)1 、打開您需要破解保護密碼的Excel 文件;2、依次點擊菜單欄上的工具- 宏 錄制新宏,輸入宏名字如:aa;3、停止錄制(這樣得到一個空宏);4、依次點擊菜單欄上的工具 -宏-宏選aa,點編輯按鈕;5、刪除窗口中的所有字符(只有幾個),替換為下面的內(nèi)容;從橫線下開始復制Option ExplicitPublic Sub AllInternalPasswords()' Breaks worksheet and workbook structure passwords.
3、Bob McCormick' probably originator of base code algorithm modified for coverage' of workbook structure / windows passwords and for multiple passwordsNorman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1) ' Modified 2003-Apr-04 by JEM: All msgs to constants, and' eliminate one Exit
4、Sub (Version 1.1.1)' Reveals hashed passwords NOT original 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 S
5、tring = "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 gramming newsgroup."Const ALLCLEAR As Stri
6、ng = 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 &
7、 "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
8、 As String = "There were no passwords on " & _"sheets, or workbook structure or windows." & AUTHORS & VERSIONConst MSGNOPWORDS2 As String = "There was no protection to " & _ "workbook structure or windows." & DBLSPACE &"Proceeding
9、to unprotect sheets." & AUTHORS & VERSIONConst MSGTAKETIME As String = "After pressing OK button this " & _ "will take some time." & DBLSPACE & "Amount of time " & _ "depends on how many different passwords, the " & _"pass
10、words, and your computer's specification." & DBLSPACE & _ "Just be patient! Make me a coffee!" & AUTHORS & VERSIONConst MSGPWORDFOUND1 As String = "You had a Worksheet " & _ "Structure or Windows Password set." & DBLSPACE & _"Th
11、e 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." & AU
12、THORS & VERSIONConst MSGPWORDFOUND2 As String = "You had a Worksheet " & _ "password set." & DBLSPACE & "The password found was: " & _ DBLSPACE & "$" & DBLSPACE & "Note it down for potential " & _ "future use
13、in other workbooks by same person who " & _"set this password." & DBLSPACE & "Now to check and clear " & _"other passwords." & AUTHORS & VERSIONConst MSGONLYONE As String = "Only structure / windows " & _ "protected with t
14、he password that was just found." & _ALLCLEAR & AUTHORS & 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, i
15、6 As IntegerDim PWord1 As StringDim ShTag As Boolean, WinT ag As BooleanApplication.ScreenUpdating = FalseWith ActiveWorkbookWinT ag = .ProtectStructure Or .ProtectWindowsEnd WithShTag = FalseFor Each w1 In WorksheetsShTag = ShT ag Or w1.ProtectContentsNext w1If Not ShT ag And Not WinT ag ThenMsgBox
16、 MSGNOPWORDS1, vbInformation, HEADERExit SubEnd IfMsgBox MSGTAKETIME, vbInformation, 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 6
17、6For 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 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
18、 .ProtectStructure = False And _.ProtectWindows = False ThenPWord1 = 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), vb
19、Information, HEADERExit Do 'Bypass all for.nextsEnd IfEnd WithNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfIf WinT ag And Not ShT ag ThenMsgBox MSGONLYONE, vbInformation, HEADERExit SubEnd IfOn Error Resume NextFor Each w1 In Worksheets&
20、#39;Attempt clearance with PWord1 w1.Unprotect PWord1Next w1On Error GoTo 0ShTag = FalseFor Each w1 In Worksheets'Checks for all clear ShT ag triggered to 1 if not.ShTag = ShT ag Or w1.ProtectContentsNext w1If ShTag ThenFor Each w1 In WorksheetsWith w1If .ProtectContents ThenOn Error Resume Next
21、Do '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 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) & _Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _Chr(i4) &
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 園藝師資源優(yōu)化配置與管理試題及答案
- 2024花藝師考試的學習方法探討試題及答案
- 如何做筆試題目及答案
- 各學科農(nóng)藝師考試復習重點試題及答案
- 農(nóng)藝師考試重要命題試題及答案
- 2024年福建事業(yè)單位考試應(yīng)試技巧試題及答案
- 招聘輔導員考試的優(yōu)勢塑造試題及答案
- 備戰(zhàn)農(nóng)業(yè)職業(yè)經(jīng)理人考試的高效計劃試題及答案
- 心育課教學設(shè)計-假期超越進行時
- 2024年園藝師考試復習模型試題及答案
- 文獻檢索與論文寫作 江蘇開放大學考試資料
- 2024年度中國共產(chǎn)主義共青團團課課件版
- 2025年上海市各區(qū)高三語文一模試題匯編之文言文二閱讀(含答案)
- 2024年工商銀行智能研發(fā)技術(shù)及應(yīng)用白皮書
- 食品生產(chǎn)車間6S管理
- 糖尿病飲食的健康宣教
- GB/T 44569.1-2024土工合成材料內(nèi)部節(jié)點強度的測定第1部分:土工格室
- 《智能網(wǎng)聯(lián)汽車智能傳感器測試與裝調(diào)》電子教案
- 2024年資格考試-對外漢語教師資格證考試近5年真題附答案
- 超聲引導下動靜脈內(nèi)瘺穿刺
- 柯坦鎮(zhèn)中心小學開展研學旅行活動實施方案
評論
0/150
提交評論