




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、Excel 中如何破解“撤銷工作表保護(hù)密碼”并獲取原始密碼一、保護(hù)工作表的方法1 、 全選定工作表右擊 設(shè)置單元格格式 找到保護(hù)將鎖定和 隱藏 兩個(gè)的勾去掉;2、將要保護(hù)的工作表單元格選定右擊設(shè)置單元格格式 找到保護(hù)將 鎖定 和 隱藏兩個(gè)的勾打上;3 、 點(diǎn)菜單欄的工具 中的保護(hù)里的 保護(hù)工作表將保護(hù)工作表及鎖定的單元內(nèi)容打上勾,下選允許此工作表的所有用戶選定未鎖定的單元格打上勾二、Excel 工作表保護(hù)密碼破解方法(如果Excel 文件的打開密碼忘記了,且密碼是6 位數(shù)以內(nèi)的數(shù)字,可用以下步驟解開(關(guān)掉所有程序,為了速度):新開一Excel ,同時(shí)按Alt 和 F11 ,進(jìn)入 VBA 界面,
2、點(diǎn)菜單上的插入,模塊,在新出來的窗口粘貼一下代碼:然后在此界面直接按F5 運(yùn)行此宏,選擇文件,等啊等(看密碼長度了)1 、打開您需要破解保護(hù)密碼的Excel 文件;2、依次點(diǎn)擊菜單欄上的工具- 宏 錄制新宏,輸入宏名字如:aa;3、停止錄制(這樣得到一個(gè)空宏);4、依次點(diǎn)擊菜單欄上的工具 -宏-宏選aa,點(diǎn)編輯按鈕;5、刪除窗口中的所有字符(只有幾個(gè)),替換為下面的內(nèi)容;從橫線下開始復(fù)制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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 對(duì)分包單位的進(jìn)場安全總交底
- 2025年消霧塔項(xiàng)目發(fā)展計(jì)劃
- 《紅樓夢》閱讀考題
- 江蘇省鹽城市射陽縣2024-2025學(xué)年八年級(jí)下學(xué)期3月月考英語試題(原卷版+解析版)
- 實(shí)驗(yàn)室儀器采購 投標(biāo)方案(技術(shù)方案)
- 城市供水系統(tǒng)優(yōu)化管理方案
- 醫(yī)藥冷鏈運(yùn)輸公司排名
- 孝感城區(qū)智慧燃?xì)忭?xiàng)目可行性研究報(bào)告
- 開發(fā)項(xiàng)目居間合同
- 2025年度北京市餐廳裝修與品牌故事創(chuàng)作合同
- 會(huì)展物流服務(wù)合同范例
- 2025年孝感貨運(yùn)從業(yè)資格考試
- 防災(zāi)避險(xiǎn)安全應(yīng)急知識(shí)培訓(xùn)課件
- 2023年新高考全國Ⅱ卷語文真題(解析版)
- 2025屆西北四省(山西、陜西、青海、寧夏)高三下學(xué)期第一次聯(lián)考英語試題
- 中考生物總復(fù)習(xí)《用藥、急救與健康地生活》專項(xiàng)測試題及答案
- 第2課 中華文化的世界意義 說課稿-2023-2024學(xué)年高中歷史統(tǒng)編版(2019)選擇性必修3
- 2.2學(xué)會(huì)管理情緒 課件 -2024-2025學(xué)年統(tǒng)編版道德與法治七年級(jí)下冊(cè)
- 鋼結(jié)構(gòu)廊架施工方案
- 2024版質(zhì)量管理培訓(xùn)
- 軌道及道岔安裝標(biāo)準(zhǔn)
評(píng)論
0/150
提交評(píng)論