变态重口极致另类在线-波多久久夜色精品国产-波多野结衣在线观看一区-波多野结衣在线观看一区二区-污污的网站免费阅读-污污视频网址

當前位置:首頁文章首頁 新聞中心

Excel—“撤銷工作表保護密碼”的破解并獲取原始密碼

作者:  來源:  發布時間:2011-9-10 17:11:37  點擊:

Excel—“撤銷工作表保護密碼”的破解并獲取原始密碼

在日常工作中,您是否遇到過這樣的情況:您用Excel編制的報表、表格、程序等,在單元格中設置了公式、函數等,為了防止其他人修改您的設置或者防止您自己無意中修改,您可能會使用Excel的工作表保護功能,但時間久了保護密碼容易忘記,這該怎么辦?有時您從網上下載的Excel格式的小程序,您想修改,但是作者加了工作表保護密碼,怎么辦?您只要按照以下步驟操作,Excel工作表保護密碼瞬間即破!

1、打開您需要破解保護密碼的Excel文件;

2、依次點擊菜單欄上的工具---宏----錄制新宏,輸入宏名字如:aa;

3、停止錄制(這樣得到一個空宏);

4、依次點擊菜單欄上的工具---宏----宏,選aa,點編輯按鈕;

5、刪除窗口中的所有字符(只有幾個),替換為下面的內容;

從橫線下開始復制

------------------------------------------------------------------------------------------

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

上一篇:CMMI入門-通用實踐的實施 下一篇:

文章評論

軟件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
主站蜘蛛池模板: 九九99| 中文字幕免费在线看 | 99久久这里只精品麻豆 | 日韩精品免费一区二区三区 | 在线观看黄网址 | 狠狠干天天爱 | 色综合天天综合网看在线影院 | 久久.com| 国产成人一区二区 | 欧美a级v片在线观看一区 | 久久99精品久久久久久欧洲站 | 亚洲免费在线观看 | 日韩免费毛片 | 999热成人精品国产免 | 青春草国产 | 欧美日中文字幕 | 大片免费播放器免费观看 | 精品女同一区二区三区免费播放 | 91精品一区二区三区在线播放 | 日本成年免费网站 | 有没有在线看片www 又www又黄又爽啪啪网站 | 手机国产看片 | 亚洲视频免 | 亚洲成av人片在线观看 | 色香欲综合天天影院综合 | 欧美ay亚洲ay日韩ay | 欧美性xxx狂流白浆 欧美性xxx免费看片 | 婷婷成人丁香五月综合激情 | 精品影视网站入口 | 亚亚洲乱码一二三四区 | 在线观看深夜视频 | 欧美亚洲综合另类成人 | 午夜影视在线 | 成人免费国产欧美日韩你懂的 | 男人的天堂免费视频 | 欧美日韩国产一区二区三区伦 | 99精品视频在线观看免费播放 | 福利在线免费视频 | a级特黄一级毛片七仙女思春 | 美腿丝袜综合 | 色综合久久综合网 |