跳到主要内容

如何锁定和保护选定的单元格以防止在Excel中进行编辑?

单击并锁定和保护整个工作表或工作簿很容易。 保护工作表 按钮或 保护工作簿 按钮下 进入步骤三:发送 标签。 但是,有时您可能只需要锁定和保护工作表中的特定单元格或所选内容。 您想怎么做? 本文将指导您通过以下步骤锁定和保护Excel中的选定单元格或范围:


通过修改单元格格式来锁定和保护所选单元格以防止编辑

以下步骤将指导您首先解锁当前的所有单元格,锁定所需的单元格和范围,然后保护当前的工作表。 请执行以下操作:

1。 单击箭头 在工作表的左上角,以选择活动工作表中的所有单元格。

2。 右键单击任何选定的单元格,然后选择 格式化单元格 上下文菜单中的项目。 见下面的截图:

3。 在“设置单元格格式”对话框中,取消选中 锁定 选项下 的故事 选项卡,然后单击 OK 按钮。 见上面的截图:

4。 选择要锁定的单元格和范围,右键单击并选择 格式化单元格 上下文菜单中的项目。

5。 在“设置单元格格式”对话框中,选中 选项下 的故事 选项卡,然后单击 OK 按钮。 见上面的截图:

6。 点击 进入步骤三:发送 > 保护工作表 保护当前的工作表。 见下面的截图:
doc锁定单元格5

7.在弹出的“保护工作表”对话框的空白框中输入密码,然后单击“确定”。 OK 按钮。 然后在另一个“确认密码”对话框中重新输入密码,然后单击 OK 按钮。 参见上面的截图。

现在,它仅锁定和保护您在步骤4中选择的单元格和范围,而取消选择范围是可编辑的。


锁定并保护选定的单元格免于使用 Kutools for Excel 进行编辑

Kutools for Excel的 选择解锁 实用程序和 选择锁 实用程序使您只需单击一下即可解锁/锁定所有选定的单元格,然后可以通过允许编辑解锁的单元格来保护整个工作表。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

1。 单击箭头 在工作表的左上角,以选择活动工作表中的所有单元格。

2。 点击 Kutools 加 > 工作表设计 激活 设计 选项卡,然后单击 设计 > 解锁单元。 看截图:

然后出现一个对话框,告诉您选定的单元已被解锁。 只需点击 OK 按钮关闭它。

3。 选择要锁定的单元格和范围,然后单击 设计 > 细胞.

然后点击 OK 按钮关闭弹出的 Kutools for Excel 对话框。

4。 点击 设计 > 保护工作表 or 进入步骤三:发送 > 保护工作表,然后您可以按照 我们在第一种方法中介绍的用于保护当前工作表的相同步骤.


通过加密锁定并保护所选单元格以防止查看

如果您安装了 Kutools for Excel,这是另一个 加密单元 实用程序可以帮助您快速锁定并快速保护选定的单元格。 您可以执行以下操作:

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

1。 选择要锁定和保护的单元格,然后单击 Kutools 加 > 加密单元>加密单元.

2。 在打开的“加密单元”对话框中,同时输入密码 密码 盒子和 确认 框,选择一种遮罩类型,然后单击 Ok 按钮。

然后,您将看到所有选定的单元都被立即加密,如下图所示:

备注:您可以通过单击解密这些加密的单元格 Kutools 加 > 加密单元>解密单元,然后在打开的对话框中输入密码。

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示:锁定和保护Excel中的选定单元格


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

快速批量密码保护Excel中的多个/所有工作表

通常是Excel的 保护工作表 功能只能保护活动工作表。然而,Kutools for Excel 的 保护工作表 该实用程序仅用2个步骤即可批量保护使用相同密码的多个(或全部)工作表。
广告保护多张纸

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (93)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks - so very very helpful - instant answer to my needs - very grateful this exists
This comment was minimized by the moderator on the site
Thank u for helps.
This comment was minimized by the moderator on the site
Please i want know lock some of the cells in my worksheet, how do i go about
This comment was minimized by the moderator on the site
Hi Daniel,

Both the first and the second methods can help and guide you to lock only part of cells in a worksheet. Just follow the tutorial.
This comment was minimized by the moderator on the site
i need to protect a particular cells , which can only view and unable to edit??
This comment was minimized by the moderator on the site
Hi,
Both of the first method and the second method can protect some certain cells, and make these cells visible but not editable.
This comment was minimized by the moderator on the site
how to protect single row or columm
This comment was minimized by the moderator on the site
we cant protect a specific cell or column, so kindly suggest how to protect single column or row protect
This comment was minimized by the moderator on the site
Great! it helped a lot .
This comment was minimized by the moderator on the site
Thanks Bro thanks i done it.....it will be helpful in my future work
This comment was minimized by the moderator on the site
Hi, I followed method 1 to the letter along with hiding the cells too. ie I have approx 120 rows & 20 cols and selected rows 6 to 15 to lock and it works fine, they are also hidden but, now I cannot change the formatting eg make bold etc on other cells though I can change the contents. The bold option is greyed out :-( Have been through this a couple of times and it is consistent. I am using Microsoft Office Professional Plus 2010. It doesnt matter if I unhide either :-( The dialog box re "Protect sheet" always also selects unlocked when I only want to select locked cells, there seems no way around this, what can I do ?
This comment was minimized by the moderator on the site
thanks i done it.....it will be helpful in my future work
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations