<em id="0a85b"><option id="0a85b"></option></em>

<abbr id="0a85b"></abbr>

      <nobr id="0a85b"></nobr>
        <tr id="0a85b"></tr>
        9久久伊人精品综合,亚洲一区精品视频在线,成 人免费va视频,国产一区二区三区黄网,99国产精品永久免费视频,亚洲毛片多多影院,精品久久久无码人妻中文字幕,无码国产欧美一区二区三区不卡
        學習啦 > 學習電腦 > 工具軟件 > 辦公軟件學習 > Excel教程 > Excel表格 > excel2007表格如何取消密碼

        excel2007表格如何取消密碼

        時間: 嘉銘873 分享

        excel2007表格如何取消密碼

          在做excel表格時我們有時候會給自己的工作表加密,一旦忘記密碼就會很麻煩,下面讓學習啦小編為你帶來excel2007表格如何取消密碼的方法。

          excel2007取消密碼步驟如下:

          打開excel,點擊菜單欄的“視圖”,點擊二級菜單里的“宏”,選擇錄制宏

          02在彈出來的方框中輸入宏的名稱,點擊確認。

          03重復第一步的步驟,不過這次點擊“停止錄制”。

          04選擇查看宏。

          05編輯宏。

        excel2007表格如何取消密碼

          06在彈出來的代碼框輸入下面的代碼。Option Explicit

          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

          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

        關于excel2007取消密碼的相關文章推薦:

        1.excel 2007取消加密保護的教程

        2.excel07版解除密碼的方法

        3.excel2007怎么撤銷保護密碼

        1500231 主站蜘蛛池模板: 国产午夜亚洲精品国产成人| 久久精品国产99久久6| 国产欧美日韩免费看AⅤ视频| 亚洲国产精品综合一区二区| 色噜噜狠狠成人综合| 免费特黄夫妻生活片| 日韩中文免费一区二区| 91亚洲一线产区二线产区| 日本高清中文字幕免费一区二区| 丰满的已婚女人hd中字| 国产另类ts人妖一区二区| 亚洲aⅴ无码国精品中文字慕| 精品国产熟女一区二区三区| 欧洲成人在线观看| 日本一区二区三区四区黄色| 亚洲免费的福利片| 在线视频中文字幕二区| 狠狠亚洲色一日本高清色| 中文字幕精品久久天堂一区| 国内精品久久久久影院网站| 奇米影视7777久久精品| 中文字幕国产精品自拍| 无码无套少妇毛多18p| 日韩精品亚洲精品第一页| 婷婷综合亚洲| 最新精品国产自偷在自线| 久久久久国产精品熟女影院| 亚洲AV无码秘?蜜桃蘑菇| 亚洲欧美成人aⅴ在线| 免费VA国产高清大片在线 | 武装少女在线观看高清完整版免费| 动漫精品中文字幕无码| 日本另类αv欧美另类aⅴ| 67194熟妇在线直接进入| 色妺妺视频网| 四虎成人精品永久网站| 最新欧美精品一区二区三区| 国产中文字幕精品在线| 国产欧美日韩综合精品二区| 国产精品免费看久久久| 国产精品盗摄!偷窥盗摄|