[Excel2021中撤銷愛護密碼的操作方法]撤銷工作表愛護原密碼_第1頁
[Excel2021中撤銷愛護密碼的操作方法]撤銷工作表愛護原密碼_第2頁
[Excel2021中撤銷愛護密碼的操作方法]撤銷工作表愛護原密碼_第3頁
[Excel2021中撤銷愛護密碼的操作方法]撤銷工作表愛護原密碼_第4頁
已閱讀5頁,還剩7頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、excel2021中撤銷愛護密碼的操作方法撤銷工作表愛護原密碼 工作中,有時會出現(xiàn)這樣的狀況:用excel編制的報表、表格、程序等,在單元格中設置了公式、函數(shù)等,為了防止其他人修改您的設置或者防止您自己無意中修改,您可能會用法excel的工作表愛護功能,但時間久了愛護密碼簡單遺忘,今日,就教大家在excel2021中撤銷愛護密碼的操作方法。 excel2021中撤銷愛護密碼的操作步驟如下: 2021版excel表格中可以根據(jù)以下方式建宏。 1、打開excel表格中的excel選項,選擇自定義,得到如下畫面: 2、然后在左邊側框欄中選擇查看宏 之后雙擊或者選擇添加按鈕,則可以看到右邊欄中有了查看

2、宏按鈕,之后點擊右下角的確定。 3、大家可以在下面這個窗口處看到箭頭所指的按鈕: 點擊按鈕,之后彈出窗口: 4、在宏名處填寫一個名字(可隨便),然后點擊創(chuàng)建,彈出以下窗口: 5、將窗口內(nèi)的內(nèi)容全選后刪除,然后將下面分割線以內(nèi)的內(nèi)容開頭復制粘貼在上面的窗口內(nèi): 從橫線下開頭復制 - option explicit public sub allinternalpasswords() breaks worksheet and workbook structure passwords. bob mccormick probably originator of base code algorithm m

3、odified for coverage of workbook structure / windows passwords and for multiple passwords norman harker and je mcgimpsey 27-dec-2021 (version 1.1) modified 2021-apr-04 by jem: all msgs to constants, and eliminate one exit sub (version 1.1.1) reveals hashed passwords not original passwords const dbls

4、pace 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 2021-apr-04 const repback as string

5、 = dblspace please report failure _ to the gramming 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,

6、 remember that the password was _ put there for 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 version const

7、 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 _

8、 passwords, and your 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 othe

9、r 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 work

10、books 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 i

11、nteger, 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 = .p

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

13、, 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 activewor

14、kbook .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.sub

15、stitute(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

16、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

17、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(

18、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

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論