跳到主要內容

如何鎖定和保護選定的單元格以防止在Excel中進行編輯?

單擊並鎖定和保護整個工作表或工作簿很容易。 保護工作表 按鈕或 保護工作簿 按鈕下 評論 標籤。 但是,有時您可能只需要鎖定和保護工作表中的特定單元格或所選內容。 您想怎麼做? 本文將指導您通過以下步驟鎖定和保護Excel中的選定單元格或範圍:


通過修改單元格格式來鎖定和保護所選單元格以防止編輯

以下步驟將指導您首先解鎖當前的所有單元格,鎖定所需的單元格和範圍,然後保護當前的工作表。 請執行以下操作:

1。 單擊箭頭 在工作表的左上角,以選擇活動工作表中的所有單元格。

2。 右鍵單擊任何選定的單元格,然後選擇 格式單元格 上下文菜單中的項目。 見下面的截圖:

3。 在“設置單元格格式”對話框中,取消選中 鎖定 選項下 保護的故事 選項卡,然後單擊 OK 按鈕。 見上面的截圖:

4。 選擇要鎖定的單元格和範圍,右鍵單擊並選擇 格式單元格 上下文菜單中的項目。

5。 在“設置單元格格式”對話框中,選中 選項下 保護的故事 選項卡,然後單擊 OK 按鈕。 見上面的截圖:

6。 點擊 評論 > 保護工作表 保護當前的工作表。 見下面的截圖:
doc鎖定單元格5

7.在彈出的“保護工作表”對話框的空白框中輸入密碼,然後單擊 OK 按鈕。 然後在另一個“確認密碼”對話框中重新輸入密碼,然後單擊 OK 按鈕。 參見上面的截圖。

現在,它僅鎖定和保護您在步驟4中選擇的單元格和範圍,而取消選擇範圍是可編輯的。


鎖定並保護所選單元格以防止使用Kutools for Excel編輯

Kutools for Excel的 選擇解鎖 實用程序和 選擇鎖 實用程序使您只需單擊一下即可解鎖/鎖定所有選定的單元格,然後可以通過允許編輯未鎖定的單元格來保護整個工作表。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!

1。 單擊箭頭 在工作表的左上角,以選擇活動工作表中的所有單元格。

2。 點擊 Kutools 加 > 工作表設計 激活 設計 選項卡,然後單擊 設計 > 解鎖單元。 看截圖:

然後出現一個對話框,告訴您選定的單元已被解鎖。 只需點擊 OK 按鈕將其關閉。

3。 選擇要鎖定的單元格和範圍,然後單擊 設計 > 細胞.

然後點擊 OK 按鈕以關閉Kutools for Excel對話框。

4。 點擊 設計 > 保護工作表 or 評論 > 保護工作表,然後您可以按照 我們在第一種保護當前工作表的方法中引入的步驟相同.


通過加密鎖定並保護所選單元格以防止查看

如果您已安裝Kutools for Excel,則是另一種 加密單元 實用程序可以幫助您快速鎖定并快速保護選定的單元格。 您可以執行以下操作:

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!

1。 選擇要鎖定和保護的單元格,然後單擊 Kutools 加 > 加密單元>加密單元.

2。 在打開的“加密單元”對話框中,同時輸入密碼 密碼: 盒子和 確認 框,選擇一種遮罩類型,然後單擊 Ok 按鈕。

然後,您將看到所有選定的單元都被立即加密,如下圖所示:

備註:您可以通過單擊解密這些加密的單元格 Kutools 加 > 加密單元>解密單元,然後在打開的對話框中輸入密碼。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


演示:鎖定和保護Excel中的選定單元格


Excel的Kutools:超過 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選項卡為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