忘了excel文档密码怎么办啊(忘了excel文档密码怎么办啊怎么解锁)

Exce表格网 2023-01-03 01:25 编辑:admin 222阅读

1. 忘了excel文档密码怎么办啊怎么解锁

新建一个EXCEL工作表,而后点击另存为,讲表格保存为启用宏的工作表

一次点击开发工具---录制新宏,在弹出的对话框内修改宏名称而后确定

依次点击开发工具----停止录制宏,宏录制完成

依次点击开发工具,---宏----在弹出的对话框找到我们刚才录制的宏名称而后进入VBA界面

在VBA界面,全选里面的代码,而后删除,讲里面的代码全部删除完

代码复制到VBA编辑窗口内

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

Exit Sub

End If

MsgBox MSGTAKETIME, vbInformation, 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: For 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(i2) & 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 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.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

For 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 'Bypass all for...nexts

End If

Next: Next: Next: Next: Next: Next

Next: Next: Next: Next: Next: Next

Loop Until True

On Error GoTo 0

End If

End With

Next w1

End If

MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADER

End Sub

点击保存

点击开发工具,宏,找到我们刚才录制的宏,点击执行宏

而后,在弹出的所有对话框上,都点击确定,都确定,1分钟后,就可以编辑了

2. excel文档密码忘记了怎么解锁

上的密码忘记后怎么打开?

你只能重新登录,找回密码,要回密码了才能打开的,如果你密码忘记了,登录进去登了三次就会被锁,那更麻烦,所以呢,你要重新登录,然后申请找回密码,按照他的步骤或者是他需要什么朋友辅助啊,那你就要按他的步骤进行就可以了

3. 忘记excel文档打开密码怎么办

1.打开先前设置过密码的文档,输入密码即可;

2.

点击文件,点击在左边一列中的文档加密会有一个右拉菜单,再点击密码加密;

3.

之后会跳出密码加密的窗口,打开文件密码,再次输入密码和密码提示的输入框中把密码都删除点击应用。

之后会跳出“密码加密”的窗口,在“打开文件密码”,“再次输入密码”和“密码提示”的输入框中把密码都删除了之后,在按“应用”,等再次打开excel表格就不需要输入密码了。

4. excel密码忘记怎么解锁

1、先找到有工作表保护密码的Excel表格,然后将忘记密码的Excel文件名称后缀由 .xlsx改为 .rar,如果有提示可以忽略,一般不会造成什么影响

  2、用压缩文件打开忘记密码的Excel文件,然后按以下步骤进行操作:xl——worksheets——sheet1.xml(这里是将sheet1工作表设置了保护密码,可根据实际情况选择相应文件名)。

  3、从压缩文件里面找到sheet1.xml文件,然后拖拽至一个方便找到的位置(因为我们要对其要进行修改) 。然后将sheet1.xml文件右击选择用记事本打开方式打开

  4、然后搜索,“protection”,把从这一段代码,全部删除掉。

  5、然后再把修改后的sheet1.xml文件,选择拖拽到压缩的工作薄中,选择替换掉即可,点击确定。

  6、最后一步,和第一步相反,把文件名称后缀,由“演示表格.rar”重新更改“演示表格.xlsx”。最后打开Excel表格,你会惊喜地发现是不是保护密码都取消了吧。

5. excel锁了密码忘记了怎么办

1、下载Excel破解密码软件。

2、下载完以后打开程序。

3、点击最右边的小图标,选择你要 解压 的Excel文件。

4、选好后点击“移除密码”,然后会出来一个对话框,点击确定即可。

5、软件开始解密,只需几秒钟就可解密成功。

6. 忘记excel文档密码怎么办

首先,关闭表格,然后复制一份,用作备份,然后把后缀名改为RAR

打开xl文件夹后,找到worksheets文件夹,打开找到sheet1.xml文件,然后双击,用DW软件打开

接着回到RAR软件,就会自动弹出sheet1.xml已经更新,是否保存,然后点击保存,回到表格文件,把后缀名改回xlsx,然后确定,这时打开表格,就可以进行更改了

7. excel解锁密码忘记了怎么办

方法一,使用压缩包方法

将文件重命名,将后缀改成.rar格式

直接双击打开压缩包,找到xl/worksheets下,是哪个工作表被保护了,就选择哪个工作表,用内部查看器打开

按CTRL+F查找内容protect的位置,然后选中<>之间的内容,进行delete删除掉

关闭的时候,在压缩包里面要选择更新内容,然后将.rar格式改回.xlsx格式

双击打开表格文件,工作表的保护密码就被去除了,里面的内容也可以自由的编辑了

顶一下
(0)
0%
踩一下
(0)
0%
相关评论
我要评论
点击我更换图片