如何解除EXCEL工作表鎖定_第1頁(yè)
如何解除EXCEL工作表鎖定_第2頁(yè)
如何解除EXCEL工作表鎖定_第3頁(yè)
如何解除EXCEL工作表鎖定_第4頁(yè)
如何解除EXCEL工作表鎖定_第5頁(yè)
已閱讀5頁(yè),還剩6頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、參考醫(yī)學(xué) 在日常工作中,大家有時(shí)會(huì)遇到過(guò)這樣的情況:使用excel編制的報(bào)表、表格、程序等,在單元格中設(shè)置了公式、函數(shù)等,為了防止其他人修改您的設(shè)置或者防止您自己無(wú)意中修改,您可能會(huì)使用excel的工作表保護(hù)功能,但時(shí)間久了保護(hù)密碼容易忘記,這該怎么辦?有時(shí)您從網(wǎng)上下載的excel格式的小程序,您想修改,但是作者加了工作表保護(hù)密碼,怎么辦?您只要按照以下步驟操作,excel工作表保護(hù)密碼瞬間(稍微有點(diǎn)夸張)即破!步驟閱讀百度經(jīng)驗(yàn): 工具/原料· 待破解的excel工作表百度經(jīng)驗(yàn): 方法/步驟1. 1打開(kāi)您需要破解的excel文件,如圖所示:步驟閱讀2. 2依次點(diǎn)擊菜單欄上的

2、工具-宏-錄制新宏;步驟閱讀3. 3輸入宏名字(ps:打擊積極性?。。┤?易爾拓,然后停止錄制(這樣得到一個(gè)空宏,為后面添加vb代碼做準(zhǔn)備);步驟閱讀4. 4依次點(diǎn)擊菜單欄上的工具-宏-宏,選易爾拓,點(diǎn)編輯按鈕;刪除窗口中的所有字符,替換為下面的內(nèi)容;option explicitpublic sub allinternalpasswords()' breaks worksheet and workbook structure passwords. bob mccormick' probably originator of base code algorithm modifie

3、d 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 origi

4、nal 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

5、version as string = dblspace & "version 1.1.1 2003-apr-04"const repback as string = dblspace & "please report failure " & _"to the gramming newsgroup."const allclear as string = dblspace & "the workbook should " &

6、_"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 " & _&

7、quot;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 " &

8、_"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 & versioncons

9、t 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." & db

10、lspace & _"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 & "$"

11、; & 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 h

12、ad 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

13、 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 & author

14、s & 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 boo

15、leanapplication.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, vb

16、information, 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 6

17、6: 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

18、(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: n

19、ext: 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 0s

20、htag = 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

21、 = 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) &

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 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ì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論