为您找到与excel表格受保护的视图相关的共200个结果:
从数据库到出.xls格式的Excel表格后,有时打开表格有时会有红色的提示表格处于保护状态,在这个状态下我们是没有办法对表格进行任何修改的,为了修改表格的内容,需要先解除表格的保护,使Excel退出“受保护的视图”接下来是读文网小编为大家带来的excel表格退出受保护视图的方法,供大家参考。
1、用数据有效性定义数据长度。
用鼠标选定你要输入的数据范围,点"数据"->"有效性"->"设置","有效性条件"设成"允许""文本长度""等于""5"(具体条件可根据你的需要改变)。
还可以定义一些提示信息、出错警告信息和是否打开中文输入法等,定义好后点"确定"。
2、用条件格式避免重复。
选定A列,点"格式"->"条件格式",将条件设成“公式=COUNTIF($A:$A,$A1)>1”,点"格式"->"字体"->"颜色",选定红色后点两次"确定"。
这样设定好后你输入数据如果长度不对会有提示,如果数据重复字体将会变成红色。
浏览量:78
下载量:0
时间:
如果我们希望做好的Excel表格中的数据不被外人修改,或者不希望别人对Excel工作簿进行新增工作表的操作,如何利用Excel本身的功能实现上述效果呢?下面是由读文网小编分享的excel表格数据保护的方法,以供大家阅读和学习。
数据保护步骤1:打开Microsoft Office Excel 2013,点击左上角的“文件”菜单;
数据保护步骤2:在左侧弹出的的菜单中点击“打开”菜单,选择需要进行保护数据操作的Excel文件;
数据保护步骤3:如上图所示的示例文件,现在里面的所有信息都可以随便更改;
数据保护步骤4:比如需要保护Sheet1中的数据不被修改,则在底部Sheet1名称上点击鼠标右键,在弹出的快捷菜单中点击“保护工作表”菜单,则弹出保护工作表窗口,输入保护工作表的密码(也是今后取消工作表保护需要输入的密码),也就是如果别人想要修改工作表必须要知道这个密码才可以,另外设置工作表保护后其他用户对该工作表有哪些权限,最后点击“确定”按钮完成工作表保护;
数据保护步骤5:再次尝试修改Sheet1中的数据,会弹出提示信息“试图更改的单元格或图表在受保护的工作表中。”如果需要更改工作表数据,则必须撤销工作表保护;
数据保护步骤6:点击顶部菜单栏中的“审阅”,然后点击下方工具栏上的“撤销工作表保护”,会弹出撤销工作表保护窗口,在文本框中输入步骤4中设置的密码即可取消保护,再次回到表格会发现里面的数据又可以任意修改了;
数据保护步骤7:如果需要对整个工作簿进行保护,不允许用户新增工作表,则点击顶部菜单栏中的“审阅”,然后点击下方工具栏上的“保护工作簿”,同样输入密码,点击“确定”;
数据保护步骤8:点击下方的+号图标,你会发现无法添加新的工作表了;
浏览量:6
下载量:0
时间:
Excel中经常需要使用到为表格设置保护的技巧,为表格设置保护具体该如何进行操作呢?下面是读文网小编带来的关于excel表格设置密码保护的教程,希望阅读过后对你有所启发!
步骤1:在菜单栏找到工具,点击打开,然后找到保护,保护后面有4个选项,点击保护工作表;
步骤2:点击保护工作表后,弹出的窗口中下面的选项全部不用选,然后在输入密码栏输入密码,例如456,点击确定;
步骤3:在弹出窗口中重新输入密码并点击确定;
步骤4:现在在工作表内点击任何一个位置试图更改,就会出现下图所示的提示,不能够更改工作表了。
浏览量:3
下载量:0
时间:
Excel中加了密码的表格需要进行解密操作,解密具体该如何进行操作呢?下面是由读文网小编分享的excel表格取消密码保护的教程,以供大家阅读和学习。
取消密码保护步骤1:双击打开需要去掉密码的Excel表格。
取消密码保护步骤2:输入密码,打开Excel表格。
取消密码保护步骤3:点击图标,选择准备,点击加密文件
取消密码保护步骤4:删掉密码信息,然后点击确定。
取消密码保护步骤5:点击保存,保存好后。关闭再打开就不需要再输入密码。
浏览量:2
下载量:0
时间:
Excel中经常需要使用到设置区域保护的功能,部分区域具体该如何设置保护呢?下面是读文网小编带来的关于excel表格设置区域保护的教程,希望阅读过后对你有所启发!
设置区域保护步骤1:在以下表格中,由于c列中含有公式,为防止误操作导致出现错误,需要将c列锁定并保护,在需要修改公式时,要求输入正确密码才可进行下一步操作。
设置区域保护步骤2:按ctrl+A组合键全选工作表,ctrl+1打开“单元格格式”对话框,切换到“保护”标签,取消“锁定”的勾选。
设置区域保护步骤3:选中需要保护的区域(本例为c列),ctrl+1打开“单元格格式”对话框,切换到“保护”标签,勾选“锁定”。
设置区域保护步骤4:菜单栏“工具”→“保护”→“允许用户编辑区域”,打开“允许用户编辑区域”对话框,单击“新建”按钮,打开“新区域”对话框。在“引用单元格”框中输入单元格地址(也可以单击后面的按钮,通过鼠标选取区域)。
设置区域保护步骤5:在“新区域”对话框输入密码,确认密码,返回“允许用户编辑区域”对话框,单击“保护工作表”按钮,打开“保护工作表”对话框,勾选其中的“选定锁定单元格”和“选定未锁定的单元格”,确定即可。
设置区域保护步骤6:完成以上设置后,当用户试图对保护的区域进行编辑操作时,会弹出“取消锁定区域”对话框,输入正确的密码方可进行下一步操作。
浏览量:3
下载量:0
时间:
Excel中经常需要为表格设置一些保护措施保护数据,表格数据具体该如何设置保护呢?下面是读文网小编带来的关于excel表格设置保护措施的方法,希望阅读过后对你有所启发!
设置保护步骤1:首先我们打开我们要进行设置工作表保护的工作表,如图所示:
设置保护步骤2:在上面的工具栏中找到工具菜单按钮,点击工具菜单按钮,如图所示:
设置保护步骤3:在工具菜单中找到保护功能,选择它,如图所示:
设置保护步骤4:在保护功能中有一个功能是保护工作表,找到它,如图所示:
设置保护步骤5:我们点击工作表保护功能,可以看到弹出了一个对话框,首先我们可以设置保护密码,也可以不设置,如图所示:
设置保护步骤6:在设置密码的下面我们可以看到很多的功能,系统默认勾选了前两个,如图所示:
设置保护步骤7:勾选上我们要进行限制的功能,小编勾选了如图的一些功能,点击确定;
设置保护步骤8:回到工作表中我们试一试刚刚进行限制的功能,如:删除行,如图所示,现在这个功能变成灰色并点击不了了。
浏览量:2
下载量:0
时间:
Excel中有密码保护的文档具体该如何进行操作才能达到取消密码保护的效果呢?接下来是读文网小编为大家带来的excel表格取消密码保护教程,供大家参考。
步骤1:在excel里点击文件,另存为命令。
步骤2:为文件指定保存地址。
步骤3:指定好保存地址和文件名后,点击工具常规选项。
步骤4:将打开权限密码或者修改权限密码删除,确定,然后保存即可。
浏览量:2
下载量:0
时间:
Excel中经常需要使用到保护功能进行保护数据,但需要取消保护的时候具体该如何操作呢?接下来是读文网小编为大家带来的excel表格取消保护的方法,供大家参考。
取消保护步骤1:视图—宏—录制新宏—输入宏名如:aa(aa是可随意输入)
取消保护步骤2:停止录制,这样得到一个空宏
取消保护步骤3:同样视图—宏—查看宏—选aa(aa为之前新建的宏)—点击编辑按钮
取消保护步骤4:删除窗口中的所有字符,复制下面的内容粘贴。一个字母、标点符号都不能少。
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
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
取消保护步骤5:关闭编辑窗口
取消保护步骤6:视图—宏—查看宏,选AllInternalPasswords,点击执行,确定两次,等2分钟,再确定。密码撤销完毕。
浏览量:3
下载量:0
时间:
Excel中经常需要使用到公式进行计算数据,公式的保护具体该如何设置呢?下面是读文网小编带来的关于excel表格设置公式保护的教程,希望阅读过后对你有所启发!
设置公式保护步骤1:首先,看一下原始数据。下表中棕色区域的数据是需要其他人填写的,紫色区域,包括抬头和下面的合计行公式都不允许修改。
设置公式保护步骤2:查看一下紫色需要保护区域在【设置单元格格式】对话框中的【保护】选项卡下【锁定】属性是否已勾选,默认工作表都是勾选的。
设置公式保护步骤3:如果要保护区域的【锁定】属性已经被勾选,那么选定允许他人编辑的棕色区域,鼠标右键,选择【设置单元格格式】,将【保护】选项卡下的【锁定】属性去除。
设置公式保护步骤4:注意:
工作表保护状态下,只有单元格的【锁定】属性选中保护才起作用。
设置公式保护步骤5:点击【审阅】选项卡下的【保护工作表】按钮。
设置公式保护步骤6:输入适当的密码,其他默认设置不动,然后点击【确定】按钮并确认密码。
设置公式保护步骤7:注意:
这里列表选择的是“允许”他人执行的操作,如果勾选就是允许他人执行该操作。例如默认的选项允许他人选中保护的单元格,允许他人选中未保护的单元格。
设置公式保护步骤8:上述操作完毕后,再双击公式所在单元格,将弹出已被保护的对话框,不能修改。
设置公式保护步骤9:根据上面的操作方法,选中公式所在的单元格在编辑栏还是会出现公式,如果想连公式也隐藏起来,将【保护】选项卡下的【隐藏】也勾选即可。
设置公式保护步骤10:选择【隐藏】以后,在工作表保护状态公式将不可见。
设置公式保护步骤11:如果压根不想让对方选中公式所在的被保护单元格,可以在保护时将【选定锁定单元格】的复选框去掉,这样就无法选中被保护的公式所在单元格了。
浏览量:3
下载量:0
时间:
Excel中经常需要使用到保护公式的技巧,公式具体该如何设置才能被保护起来呢?下面是读文网小编带来的关于excel表格保护公式的教程,希望阅读过后对你有所启发!
步骤1:全选表格;
步骤2:点击右键,设置单元格格式;,点击保护,把锁定的“√”去掉,确定;
步骤3:选中你需要保护的单元格,右键,设置单元格格式,点击保护,把锁定点上“√”,确定。
步骤4:点击审阅,选择保护工作表。然后可以根据您的需求设置密码,确定即可。如下图:
浏览量:2
下载量:0
时间:
Excel中经常需要设置密码保护表格,设置密码具体该如何操作呢?下面是由读文网小编分享的excel表格内设置密码保护的教程,以供大家阅读和学习。
设置密码保护步骤1:打开Excel2007
设置密码保护步骤2:打开一个.xls文件(或者随意创建一个文件)
设置密码保护步骤3:找到: 工具栏——审阅——更改——保护工作表
设置密码保护步骤4:在弹出的保护工作表窗口中,只需要设置密码即可。(最好是自己不会忘记或者常用的密码),然后确定
设置密码保护步骤5:确定之后会弹出一个确定密码的窗口,然后将刚刚设置的密码再次输入,然后确定。
设置密码保护步骤6:被保护的工作表,你会发现工具栏中的很多命令都是灰色,即不可使用的意思。
设置密码保护步骤7:如果在被保护的工作表中进行填写或者修改,窗口会自动跳出警告,提示无法操作。
浏览量:4
下载量:0
时间:
Excel表格中的保护具体该如何才能解除呢?下面是读文网小编带来的关于excel表格解除保护的方法,希望阅读过后对你有所启发!
解除保护步骤1:视图—宏—录制新宏—输入宏名如:aa(aa是可随意输入)
解除保护步骤2:停止录制,这样得到一个空宏
解除保护步骤3:同样视图—宏—查看宏—选aa(aa为之前新建的宏)—点击编辑按钮
解除保护步骤4:删除窗口中的所有字符,复制下面的内容粘贴。一个字母、标点符号都不能少。
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
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
解除保护步骤5:关闭编辑窗口
解除保护步骤6:视图—宏—查看宏,选AllInternalPasswords,点击执行,确定两次,等2分钟,再确定。密码撤销完毕。
浏览量:3
下载量:0
时间:
Excel中经常需要使用到添加密码的功能,密码具体该如何添加呢?下面是读文网小编带来的关于excel给表格添加密码保护的方法,希望阅读过后对你有所启发!
添加密码保护步骤1:打开需要保护的Excel文档,单击“文件”按钮
添加密码保护步骤2:单击左边对话框中的“另存为”按钮,打开“另存为”对话框
添加密码保护步骤3:点击“工具”按钮,打开下拉工具条
添加密码保护步骤4:选择“常规选项”
添加密码保护步骤5:在常规选项框中,打开权限密码和修改权限密码中填写密码
添加密码保护步骤6:确认密码,再次输入一次刚才的密码,点击确定按钮,密码添加成功。这样密码就添加成功了。
添加密码保护步骤7:再次打开文档,弹出打开权限及修改权限的密码输入框,如果没有修改权限的密码,文档也可以按只读方式打开哦。
浏览量:6
下载量:0
时间:
在Excel中打开文件的时候经常会遇到提示受保护的视图,或许有的朋友并不知道受保护的视图该如何退出,如果不懂的朋友欢迎一起来学习学习。下面是读文网小编带来的关于excel2010如何退出受保护的视图教程,希望阅读过后对你有所启发!
退出受保护视图步骤1:打开表格,会看到表格上方会有一个明显的保护提示。
退出受保护视图步骤2:首先点击左上角的文件菜单
退出受保护视图步骤3:点击文件菜单后弹出的界面默认选择的为信息界面,在信息界面内点击“仍然编辑”,图中画红线的地方
退出受保护视图步骤4:点击后,excel表格就退出“受保护的视图”,可以查看视图变为了“兼容视图”
退出受保护视图步骤5:这时候在查看表格内容,在有数字的单元格的左上角会出现一个三角形。
退出受保护视图步骤6:这个时候我们就可以对单元格进行编辑了。
退出受保护视图步骤7:编辑自己想要修改的内容,然后保存即可。
浏览量:2
下载量:0
时间:
在Excel中录入好数据以后都需要进行密码保护,但并不需要全部保护,只需要局部保护就够了,这个时候就需要我们设置了。下面是读文网小编带来的关于excel表格部分保护的教程,希望阅读过后对你有所启发!
表格部分保护步骤1:如图中所示工作表,除了带颜色的表格外,其它的表格都包涵了大量的公式,公式是不能修改的,为了防止误操作对公式进行修改,必须要加密保护。
表格部分保护步骤2:点左上角,选择表格的全部。
表格部分保护步骤3:格式--单元格。
表格部分保护步骤4:单元格格式窗口,保护,锁定进行勾选。
(至此选择了全部表格内容。)
表格部分保护步骤5:用鼠标选择不需要保护的单元格,可以用鼠标拖动选择并结合Ctrl键。
表格部分保护步骤6:鼠标右键,设置单元格式。
表格部分保护步骤7:把锁定前面的勾去掉。
(不需要保护的内容不要勾选)
表格部分保护步骤8:工具--保护--保护工作表。
表格部分保护步骤9:弹出保护密码。
表格部分保护步骤10:再输入一遍。
表格部分保护步骤11:当我们不小心把数据输入了被保护的表格会有提示信息。
表格部分保护步骤12:该表格中带颜色的没被保护的表格则可以随意输入。
浏览量:2
下载量:0
时间:
在Excel中录入好重要数据以后通常需要用到密码保护,而过了段时间觉得没必要再用密码进行保护,这个时候就需要撤销保护,具体怎么做呢?接下来是读文网小编为大家带来的excel表格撤销保护的方法,供大家参考。
撤销保护步骤1:打开Excel表格中的Excel选项,选择自定义,得到如下画面:
撤销保护步骤2:然后在左边侧框栏中选择“查看宏”
之后双击或者选择添加按钮,则可以看到右边栏中有了查看宏按钮,之后点击右下角的确定。
撤销保护步骤3:大家可以在下面这个窗口处看到箭头所指的按钮:
点击按钮,之后弹出窗口:
撤销保护步骤4:在宏名处填写一个名字(可随意),然后点击创建,弹出以下窗口:
撤销保护步骤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
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
-----------------------------------------------------------------------------------------
复制到横线以上
得到情况如下图表示
撤销保护步骤6:关闭编辑窗口;
撤销保护步骤7:依次点击菜单栏上的工具---宏-----宏,选AllInternalPasswords,运行,确定两次;
等一会,就会出现以下对话框:这就是Excel密码对应的原始密码(此密码和原先设置的密码都能打开此文档。如果是别人的文档,你又想恢复密码设置,就可以用此密码进行保护,他就能用他设置的密码打开,你可以试试,很有趣的。字母一定要大写):
再点击确定。Excel的原始密码就被清除了!!
撤销保护步骤8:最后记得关闭EXCEL文档时要保存,否则下回打开,文档仍旧处于只读状态而无法修改。
浏览量:10
下载量:0
时间:
在Excel中因为录入太多的重要数据而经常设置密码保护,而如果需要编辑的话就需要利用一些Excel的技巧来编辑了。接下来是读文网小编为大家带来的excel表格被保护无法编辑的解决方法,希望对你有用。
被保护无法编辑解决步骤1:下载初期的excel报表,显示如图所示的红色,表示受保护状态。这种状态下的excel是无法编辑的。
被保护无法编辑解决步骤2:介绍怎么解决。左上角的“文件”--“另存为”,在选定另存为后,后出来一对话框,确定就可以了。
被保护无法编辑解决步骤3:打开另存为的文件,可以看到如图的显示,此时文件上方不再显示为红色,表示已经不再处于受保护的状态,此时也就可以对文件进行编辑使用。
浏览量:3
下载量:0
时间: