




下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、1打 2工 3停 4工 5刪 Pu Co Co A N Co Co Co t Co n DB DB DB p o m Co s Co w P Cod p J Co S T N t N Co p DB f s o Co p AL Di Di Di Di Di Di Ap Wi Wi En Sh Fo Sh Ne If Ms Ex En Ms If Ms El On Do Fo Fo Fo Fo.U Ch Ch If .P PW Ch Ch Ms $ Ex En En Ne Ne Lo On En If Ms Ex En On Fo A w1 Ne On Sh Fo C Sh Ne If Fo W
2、i If On Do Fo Fo Fo Fo .U Ch ChPW Ch Ch Ms $ l Fo w2 Ne Ex En Ne Ne Lo On En En Ne En Ms En 6關(guān)一個(gè)excel文檔要修改其中的內(nèi)容,可是被保護(hù)了,找了一堆破解軟件,要么需要購(gòu)買(mǎi),要 么是破解打開(kāi)密碼的,非保護(hù)密碼。好不容易找到解決方案!1打開(kāi)文件2工具-宏-錄制新宏-輸入名字如:aa3停止錄制(這樣得到一個(gè)空宏4工具-宏-宏,選aa,點(diǎn)編輯按鈕5刪除窗口中的所有字符(只有幾個(gè),替換為下面的內(nèi)容:Public Sub AllInternalPasswords( Breaks worksheet and w
3、orkbook 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 Reveals has
4、hed 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 McGimpseyConst HEADER As String = AllInternalPasswords User MessageConst REPBACK As String = DBLSPACE
5、& Please report failure & _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 f
6、or a reason. Dont stuff up crucial formulas & _or data. & DBLSPACE & Access and use of some data & _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
7、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
8、 computers 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 ot
9、her 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
10、& _ 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 & REPBA
11、CK 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.Scre
12、enUpdating = 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, vbInformat
13、ion, 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: F
14、or 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(i
15、2 & 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
16、 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.
17、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 Fo
18、r 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 Bypa
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 手術(shù)護(hù)理個(gè)案分享案例
- 臨產(chǎn)護(hù)理教學(xué)查房
- 漁具知識(shí)技巧培訓(xùn)課件
- 艾灸盒技術(shù)課件
- 海王星辰培訓(xùn)課件
- 護(hù)考內(nèi)科教學(xué)
- 品牌建立培訓(xùn)課件
- 住院醫(yī)師培訓(xùn)年度匯報(bào)
- 質(zhì)量培訓(xùn)課程課件
- 氣管插管操作配合護(hù)理
- 2025年度人工智能產(chǎn)業(yè)投資基金入股協(xié)議4篇
- 聚脲涂料施工方案
- T-CCIASD 10012-2024 ISO 標(biāo)準(zhǔn)集裝箱用水性涂料
- 激越管理的22項(xiàng)建議(精神科患者激越的評(píng)估和管理)
- 老年人防詐騙防電信詐騙老年人反詐騙課件
- 2024版血液透析醫(yī)院感染預(yù)防與控制標(biāo)準(zhǔn)
- 基于PLC的恒壓供水控制系統(tǒng)的設(shè)計(jì)-畢業(yè)論文
- 《成都來(lái)福士廣場(chǎng)》課件
- 電力公司班組長(zhǎng)講安全
- 植物油燃料合同協(xié)議書(shū)(2篇)
- 2024電力建設(shè)工程綠色建造評(píng)價(jià)規(guī)范
評(píng)論
0/150
提交評(píng)論