下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、excel2007怎么使用代碼破解密碼 excel密碼破解代碼在Excel中錄入過多的重要數據是人們的習慣,因此這些文件都需要利用密碼進行保護。但是忘記密碼了怎么辦呢,接下來讓小編為你帶來excel表設置密碼忘記如何打開的解決方法,歡迎大家來到學習。excel2007表格設密碼忘記的打開方法1. 打開需要破解密碼的Excel2. 按Alt+F11進入VBA編輯界面3. 插入 - 模塊4. 在右邊Module的空白編輯區(qū)域,復制粘貼下面所有內容5. F5,運行該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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025屆四川省富順二中高三3月份第一次模擬考試數學試卷含解析
- 山西省長治市2025屆高三壓軸卷英語試卷含解析
- 2024年定制版私人抵押車輛合同范本3篇
- 2024版智能穿戴設備購銷合同終止協議范本3篇
- 江蘇省南京市玄武高級中學2025屆高三第二次聯考數學試卷含解析
- 陜西省興平市秦嶺中學2025屆高考數學三模試卷含解析
- 2024年度互聯網平臺銷售服務合同范本2篇
- 2024年度新型城鎮(zhèn)化建設項目咨詢合同3篇
- 2024年公務員擔保合同模板:公務員個人貸款擔保協議9篇
- 2024年度旅游地產項目前期策劃及市場營銷合同3篇
- 信息經濟學重點難點
- 2023-2024學年貴州省貴陽市南明區(qū)四年級數學第一學期期末含答案
- 金融服務營銷PPT完整全套教學課件
- 經濟博弈論(謝織予)課后答案及補充習題答案
- 國開電大2022年春季期末考試《園產品貯藏技術》試題(試卷代號2713)
- 有機波譜分析考試題庫及答案1
- 2023海南省圖書館公開招聘財政定額補貼人員15人(一)模擬備考預測(共1000題含答案解析)綜合試卷
- 導游考試指南:一個月過北京導游考試
- 跨境電商平臺認知Lazada
- 辦公樓VRV多聯空調與中央空調系統方案比較
- GB/T 33609-2017軟質泡沫聚合材料滯后損失試驗方法
評論
0/150
提交評論