您当前的位置:首页 > 生活 > 内容

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

关于【excel处于锁定状态怎么解除】,excel处于锁定状态怎么办,今天向乾小编给您分享一下,如果对您有所帮助别忘了关注本站哦。

内容导航:1、excel处于锁定状态怎么解除:excel处于锁定状态怎么办2、同事走后,Excel工作表被锁密码了,一招教你破解,以备不时之需

1、excel处于锁定状态怎么解除:excel处于锁定状态怎么办

excel表格是我们办公会用到的工具,使用过程中也会常遇到excel锁定状态,那么excel处于锁定状态怎么办呢?请看下面

操作方法

excel表格弹出锁定状态的原因很有可能是因为我们对excel表格双击打开的次数过多后多个表格同时打开导致的。

出现这个情况,我们可以将鼠标移动到电脑桌面的任务栏出点击右键选择“启动任务管理器”。

然后我们在任务管理器内找到我们刚才打开的表格程序,点击“结束进程”。

然后我们回到刚才打开的表格,在顶部点击“审阅”然后找到“共享工作簿”会弹出窗口,我们在“允许多用户同时编辑,同时允许工作簿合并”前面勾选后点击确定就可以解决了。

2、同事走后,Excel工作表被锁密码了,一招教你破解,以备不时之需

工作中有时,别人因其他原因离职了,交接时,对方留了一手,有些重要工作文档上密码了,电话也联系不上,是不是感到很受伤。

其实,这种现象还真的有发生,本人就遇到过这种情况

下面,分享一个方法,可以应对一下,以备不时之需

事列如下,我先将工作表加密

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

加密后,我试图去编辑工作表,提示以被保护,提示要先取消保护

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

当时,我又记不得密码了,或者不知道密码?

选择解密工作表,点击鼠标右键,查看代码

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

弹出代码便捷框

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

输入代码:

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

粘帖完后,点击运行按钮,或按F5键,运行代码,弹出提示,点击确定

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

几分钟后,会弹出几个对话框,单击确定后,文件中的密码即被清除

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

然后关掉,这个窗口,密码已经没解除,可以编辑了

excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)

代码如下:有兴趣的可以试试

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 " & vbCrLf & vbCrLf & "BeyondPC" & vbCrLf & "http://blog.sina.com.cn/beyondpc"

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

还有一种,通过插件

本文关键词:excel处于锁定状态什么意思,excel处于锁定状态怎么办解除,excel文件处于锁定状态怎么办,excel处于锁定状态怎么办,如何取消excel锁定状态。这就是关于《excel处于锁定状态怎么解除,excel处于锁定状态怎么办(Excel工作表被锁密码了)》的所有内容,希望对您能有所帮助!


声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,谢谢。

上一篇: 机箱都有哪些品牌啊?微软赞奇专卖店

下一篇: 西达本胺在江西宜春医保可以报销多少 西达本胺



猜你感兴趣

推荐阅读

网站内容来自网络,如有侵权请联系我们,立即删除! | 软文发布 | 粤ICP备2021106084号