下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、excel2007怎么使用代碼破解密碼 excel密碼破解代碼在Excel中錄入過多的重要數(shù)據(jù)是人們的習(xí)慣,因此這些文件都需要利用密碼進(jìn)行保護(hù)。但是忘記密碼了怎么辦呢,接下來讓小編為你帶來excel表設(shè)置密碼忘記如何打開的解決方法,歡迎大家來到學(xué)習(xí)。excel2007表格設(shè)密碼忘記的打開方法1. 打開需要破解密碼的Excel2. 按Alt+F11進(jìn)入VBA編輯界面3. 插入 - 模塊4. 在右邊Module的空白編輯區(qū)域,復(fù)制粘貼下面所有內(nèi)容5. F5,運(yùn)行該VBA命令-Option ExplicitPublic Sub AllInternalPasswords Breaks workshee
2、t 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 Modified 2003-Apr-04 by JEM: All msgs to constants, and eliminate one Exi
3、t Sub 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 String = “AllInternalPasswords User Mess
4、age”Const VERSION As String = DBLSPACE & “Version 2003-Apr-04”Const REPBACK As String = DBLSPACE & “Please report failure “ & _”to the newsgroup.”Const ALLCLEAR As String = DBLSPACE & “The workbook should “ & _”now be free of all password protection, so make sure you:” & _DBL
5、SPACE & “SAVE IT NOW!” & DBLSPACE & “and also” & _DBLSPACE & “BACKUP!, BACKUP!, BACKUP!” & _DBLSPACE & “Also, remember that the password was “ & _”put there for a reason. Dont stuff up crucial formulas “ & _”or data.” & DBLSPACE & “Access and use of some d
6、ata “ & _”may be an offense. If in doubt, dont.”Const MSGNOPWORDS1 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.” & DB
7、LSPACE & _”Proceeding 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 “ & _”passwords, and your computers
8、specification.” & DBLSPACE & _”Just be patient! Make me a coffee!” & AUTHORS & VERSIONConst MSGPWORDFOUND1 As String = “You had a Worksheet “ & _”Structure or Windows Password set.” & DBLSPACE & _”The password found was: “ & DBLSPACE & “$” & DBLSPACE & _”N
9、ote 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 & VERSIONConst MSGPWORDFOUND2 As String = “You had a Worksheet “ & _”password set.” & DBLSPACE &
10、“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 & VERSIONConst MSG
11、ONLYONE As String = “Only structure / windows “ & _”protected with the 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 Integ
12、er, i2 As IntegerDim i3 As Integer, i4 As Integer, i5 As Integer, i6 As IntegerDim PWord1 As StringDim ShTag As Boolean, WinTag As Boolean = FalseWith ActiveWorkbookWinTag = .ProtectStructure Or .ProtectWindowsEnd WithShTag = FalseFor Each w1 In WorksheetsShTag = ShTag Or Next w1If Not ShTag And Not
13、 WinTag ThenMsgBox 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
14、 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 126With ActiveWorkbook.Unprotect Chr & Chr & Chr & _Chr & Chr & Chr & Chr & _Chr & Chr & Chr & Chr & ChrIf .ProtectStructure = False An
15、d _.ProtectWindows = False ThenPWord1 = Chr & Chr & Chr & Chr & _Chr & Chr & Chr & Chr & _Chr & Chr & Chr & ChrMsgBox , vbInformation, HEADERExit Do Bypass all for.nextsEnd IfEnd WithNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop
16、Until TrueOn Error GoTo 0End IfIf WinTag And Not ShTag ThenMsgBox MSGONLYONE, vbInformation, HEADERExit SubEnd IfOn Error Resume NextFor Each w1 In WorksheetsAttempt clearance with PWord1 PWord1Next w1On Error GoTo 0ShTag = FalseFor Each w1 In WorksheetsChecks for all clear ShTag triggered to 1 if n
17、ot.ShTag = ShTag Or Next w1If ShTag ThenFor Each w1 In WorksheetsWith w1If .ProtectContents ThenOn 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 66For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66For i5 =
18、 65 To 66: For i6 = 65 To 66: For n = 32 To 126.Unprotect Chr & Chr & Chr & _Chr & Chr & Chr & Chr & Chr & _Chr & Chr & Chr & ChrIf Not .ProtectContents ThenPWord1 = Chr & Chr & Chr & Chr & _Chr & Chr & Chr & Chr & _Chr & Chr & Chr & ChrMsgBox , vbInformation, HEADERleverage finding Pword by trying on other sheetsFor Each w2 In Worksheets PWord1Next w2Exit Do Bypass all for.nextsEnd IfNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Erro
溫馨提示
- 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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度專業(yè)演出場地租賃及活動策劃服務(wù)協(xié)議3篇
- 2025年度碼頭貨物短途運(yùn)輸及環(huán)保處理服務(wù)合同4篇
- 2024-2025學(xué)年高中歷史第五單元近現(xiàn)代中國的先進(jìn)思想第20課西學(xué)東漸課后習(xí)題含解析岳麓版必修3
- 二零二五版生態(tài)修復(fù)工程承攬合同模板-施工與生態(tài)保護(hù)2篇
- 2025年度門衛(wèi)人員安全教育與聘用合同
- 2024版派遣員工合同樣本2篇
- 2025版高端商務(wù)辦公空間租賃合同4篇
- 2024碼頭場地租賃合同
- 2024版天然氣安全運(yùn)輸合同
- 2024鐵路旅客運(yùn)輸服務(wù)質(zhì)量監(jiān)督合同3篇
- 運(yùn)輸供應(yīng)商年度評價(jià)表
- 機(jī)械點(diǎn)檢員職業(yè)技能知識考試題庫與答案(900題)
- 成熙高級英語聽力腳本
- 北京語言大學(xué)保衛(wèi)處管理崗位工作人員招考聘用【共500題附答案解析】模擬試卷
- 肺癌的診治指南課件
- 人教版七年級下冊數(shù)學(xué)全冊完整版課件
- 商場裝修改造施工組織設(shè)計(jì)
- (中職)Dreamweaver-CC網(wǎng)頁設(shè)計(jì)與制作(3版)電子課件(完整版)
- 統(tǒng)編版一年級語文上冊 第5單元教材解讀 PPT
- 加減乘除混合運(yùn)算600題直接打印
- ASCO7000系列GROUP5控制盤使用手冊
評論
0/150
提交評論