free性欧美人与dog,成年免费视频黄网站zxgk,久热国产精品视频一区二区三区,.欧美精品一区二区三区,国产人与zoxxxx另类

office中excel“撤銷保護(hù)密碼”的方法很有效

導(dǎo)讀工作中,有時會出現(xiàn)這樣的情況:用Excel編制的報表、表格、程序等,在單元格中設(shè)置了公式、函數(shù)等,為了防止其他人修改您的設(shè)置或者防止您自己無意中修改,您可能會使用Excel的工作表保護(hù)功能,但時間久了保護(hù)密碼容易忘記,有時從網(wǎng)上下載的Excel格式的小程序,想修改,但是作者加了工作表保護(hù)密碼,下面就拉看看office中excel“撤銷保護(hù)密碼”的方法吧!材料/工具Excel(以Excel2010為例)方法雙擊打開需要破解保護(hù)密碼的Excel文件依次點(diǎn)擊菜單欄上的視圖---宏----錄制宏輸入宏名...
工作中,有時會出現(xiàn)這樣的情況:用Excel編制的報表、表格、程序等,在單元格中設(shè)置了公式、函數(shù)等,為了防止其他人修改您的設(shè)置或者防止您自己無意中修改,您可能會使用Excel的工作表保護(hù)功能,但時間久了保護(hù)密碼容易忘記,有時從網(wǎng)上下載的Excel格式的小程序,想修改,但是作者加了工作表保護(hù)密碼,下面就拉看看office中excel“撤銷保護(hù)密碼”的方法吧!

材料/工具

Excel(以Excel2010為例)

方法

雙擊打開需要破解保護(hù)密碼的Excel文件

依次點(diǎn)擊菜單欄上的視圖---宏----錄制宏

輸入宏名字如:宏1點(diǎn)擊確定

依次點(diǎn)擊菜單欄上的視圖---宏----停止錄制

依次點(diǎn)擊菜單欄上的視圖---宏----查看宏

選擇宏1點(diǎn)擊編輯

將窗口內(nèi)的內(nèi)容全選后刪除

然后將下面分割線以內(nèi)的內(nèi)容開始復(fù)制粘貼在上面的窗口內(nèi):從橫線下開始復(fù)制------------------------------------------------------------------------------------------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 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 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 & VERSIONConst MSGNOPWORDS2 As String = "There was no protection to " & _"workbook structure or windows." & DBLSPACE & _"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 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 & _"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 & VERSIONConst 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 & VERSIONConst MSGONLYONE 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 Integer, i2 As IntegerDim i3 As Integer, i4 As Integer, i5 As Integer, i6 As IntegerDim PWord1 As StringDim ShTag As Boolean, WinTag As Boolean Application.ScreenUpdating = FalseWith ActiveWorkbookWinTag = .ProtectStructure Or .ProtectWindowsEnd WithShTag = FalseFor Each w1 In WorksheetsShTag = ShTag Or w1.ProtectContentsNext w1If Not ShTag And Not 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 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(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 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), vbInformation, HEADERExit Do 'Bypass all for...nextsEnd IfEnd WithNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfIf WinTag And Not ShTag ThenMsgBox MSGONLYONE, vbInformation, HEADERExit SubEnd IfOn Error Resume NextFor Each w1 In Worksheets'Attempt clearance with PWord1w1.Unprotect PWord1Next w1On Error GoTo 0ShTag = FalseFor Each w1 In Worksheets'Checks for all clear ShTag triggered to 1 if not.ShTag = ShTag Or w1.ProtectContentsNext 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 = 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) & Chr(i5) & Chr(i6) & Chr(n)MsgBox Application.Substitute(MSGPWORDFOUND2, _"$$", PWord1), vbInformation, HEADER'leverage finding Pword by trying on other sheetsFor Each w2 In Worksheetsw2.Unprotect PWord1Next w2Exit Do 'Bypass all for...nextsEnd IfNext: Next: Next: Next: Next: NextNext: Next: Next: Next: Next: NextLoop Until TrueOn Error GoTo 0End IfEnd WithNext w1End IfMsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADEREnd Sub-----------------------------------------------------------------------------------------復(fù)制到橫線以上

得到情況如下圖表示

關(guān)閉編輯窗口

依次點(diǎn)擊菜單欄上的視圖---宏-----查看宏

選AllInternalPasswords,執(zhí)行

確定三次,這是第三次的確定圖

撤銷成功

最后記得關(guān)閉EXCEL文檔時要保存,否則下回打開,文檔仍舊處于只讀狀態(tài)而無法修改。點(diǎn)擊保存

點(diǎn)擊是

為你推薦
資訊專欄
熱門視頻
相關(guān)推薦
怎么自動關(guān)機(jī),命令的啟動和取消 銀行卡該如何開通短信提醒 excel打不開時如何修復(fù)處理 如何用筆記本攝像頭拍照 怎么在不改變圖片清晰度的情況下減小存儲大小 ps怎么添加和去除網(wǎng)格線 怎樣用origin繪圖軟件繪制對數(shù)坐標(biāo)圖 word頁面設(shè)置里沒有A3紙格式怎么辦 如何制作二維碼鏈接 PPT都有哪些幻燈片放映快捷鍵 win7開啟超級管理員賬戶(Administrator) word中該如何為文字添加注釋 迅雷下載資源不足如何處理 ie瀏覽器怎樣設(shè)置打開網(wǎng)頁的方式 聯(lián)想g50怎么進(jìn)入bios 買電腦需要注意哪些配置 如何恢復(fù)ie默認(rèn)的設(shè)置 電腦無法開機(jī),一直不停重啟怎么辦 論文怎么查重復(fù)率 軟件問題導(dǎo)致AutoCAD意外關(guān)閉 cad如何保存為pdf 如何在excel表格中固定第一行 通過路由器查看寬帶密碼 while循環(huán)語句 怎么修改支付寶賬戶名 快捷鍵選擇EXCEL一行或一列 iPhone蘋果手機(jī)突然黑屏開不了機(jī)怎么辦 用電腦免費(fèi)給手機(jī)發(fā)短信 什么是花唄——支付寶新功能 用電腦怎樣下載微信5.0版到手機(jī) 如何重裝聲卡驅(qū)動 微信公眾號如何發(fā)文章 Excel函數(shù)詳解:TRUE和FALSE函數(shù)用法 蘋果6如何還原出廠設(shè)置 如何恢復(fù)已經(jīng)退出的qq群 怎么把pdf中的圖像全部導(dǎo)出 電腦打開網(wǎng)頁慢的原因及解決辦法 win10打印機(jī)共享如何設(shè)置 怎么在一張ppt中插入多張圖片并能依次播放 傳真機(jī)的使用方法
Top