excel表格忘記密碼怎么破解(excel表格密碼破解方法)

      網友投稿 894 2025-03-31

      一些有著重要的excel文件,工作表肯定會添加密碼,但是有時會忘記密碼,這是該如何破解呢?其實設置方法不難,小編有簡單暴力的方法,下面隨小編一起來看看excel表格破解工作表密碼的方法,歡迎大家來到學習。

      打開excel工作表

      然后在Excel表中找到【視圖】。

      點開【宏】。

      然后選擇【錄制宏】。

      接著會彈出一個窗口,點擊【確定】。

      在此點開【宏】,點擊【停止錄制】。

      然后再點擊【宏】,彈出窗口點擊【編輯】。

      然后點擊【模板1】,并清空右邊紅框里的代碼,如下圖。

      然后把破解代碼復制粘貼進入空白處(破解代碼小編將在文章最底部分享給大家)。

      然后在打開【查看宏】,點擊執行破解代碼。

      會彈出一個框,是英文的,看不懂沒關系,點擊確定,解密需要一段時間。

      12破解代碼:

      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

      excel表格忘記密碼怎么破解(excel表格密碼破解方法)

      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 & "Please 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 & _

      "Proceeding 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

      猜你感興趣:

      1.excel忘記密碼怎么破解

      2.excel如何破解工作表密碼

      3.excel表設置密碼后忘記了如何打開

      4.Excel中出現密碼忘記利用破解工具的操作方法

      版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。

      版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。

      上一篇:如何在XHTML中使用JavaScript
      下一篇:PCB制造文件中有什么?
      相關文章
      久久精品国产精品亚洲艾草网美妙| 亚洲麻豆精品果冻传媒| 亚洲精品亚洲人成在线观看麻豆 | 亚洲aⅴ无码专区在线观看春色| 亚洲国产精品美女| 日产亚洲一区二区三区| 亚洲av中文无码乱人伦在线r▽ | 亚洲午夜福利在线视频| 亚洲精品中文字幕无乱码麻豆| 亚洲国产成人精品青青草原| 亚洲美女免费视频| 亚洲熟妇av一区二区三区下载| 亚洲系列国产精品制服丝袜第| 亚洲福利一区二区精品秒拍| 亚洲福利电影一区二区?| 亚洲国产综合在线| 亚洲乱码一二三四区乱码| 亚洲人成人网毛片在线播放| 久久亚洲国产成人影院| 亚洲一线产区二线产区区| 亚洲中文字幕久久无码| 亚洲日韩一区精品射精| 亚洲高清毛片一区二区| 久久精品国产亚洲AV电影网| 国产精品亚洲精品日韩动图 | 亚洲а∨精品天堂在线| 朝桐光亚洲专区在线中文字幕| mm1313亚洲精品国产| 亚洲成a人片在线观看国产| 亚洲另类少妇17p| 亚洲老妈激情一区二区三区| 亚洲av伊人久久综合密臀性色 | 亚洲人成依人成综合网| 亚洲第一页在线视频| 亚洲一区二区三区高清视频| 亚洲熟妇无码八V在线播放| 蜜桃传媒一区二区亚洲AV| 亚洲片国产一区一级在线观看 | 亚洲中文字幕久久久一区| 国产亚洲午夜精品| 亚洲宅男天堂在线观看无病毒|