跳到主要內容

如何在不雙擊Excel的情況下鍵入或編輯單元格?

通常,在編輯帶有內容的單元格時,您需要雙擊它才能首先進入編輯模式。 要編輯內容超出單元格大小的單元格,您需要進入編輯模式,然後找到進行更改的準確位置。 本教程介紹了三種方法,可以幫助您輕鬆地在Excel中編輯單元格。


鍵入或按F2鍵編輯單元格

你可以按下 F2 無需雙擊即可進入單元格的編輯模式。

它很容易操作,您只需選擇要編輯的單元格並按F2鍵,光標將位於單元格值的末尾,那麼您可以立即編輯該單元格。

備註:您需要按 F2 重複按鍵以編輯列表中的所有單元格。


在Excel中輕鬆查看和編輯內容較長的單元格:

增強的編輯欄 的效用 Excel的Kutools 可以幫助您輕鬆查看和編輯內容較長的單元格,而無需雙擊該單元格或放大公式欄。
立即下載並試用! (30 天免費試用)


輸入或使用VBA代碼編輯單元格

如果按F2鍵也很耗時,則可以嘗試以下VBA方法。

1。 按 其他 + F11 同時打開 Microsoft Visual Basic for Applications 窗口。

2。 在裡面 Microsoft Visual Basic for Applications 窗口,請雙擊左側欄中的工作表名稱(您需要在此工作表中編輯位置的單元格)以打開代碼窗口。 然後將下面的VBA代碼複製並粘貼到窗口中。

VBA代碼:無需雙擊即可輸入或編輯單元格

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Update by Extendoffice 20190809
    SendKeys "{F2}"
End Sub

3。 按 其他 + Q 同時關閉按鍵 Microsoft Visual Basic for Applications 窗口。

從現在開始,當選擇一個單元格或按Enter鍵移動到該工作表中的下一個單元格時,它將自動進入編輯模式。


強大的功能輕鬆編輯長內容單元

這裡我們介紹 增強的編輯欄 的特點 Excel的Kutools。 使用此功能,您可以輕鬆編輯內容較長的單元格,而無需雙擊該單元格。

在進行以下操作之前,請 去下載並安裝Kutools for Excel 首先。

1.通過單擊啟用此功能 庫工具 > 顯示隱藏增強的編輯欄.

從現在開始,當選擇一個單元格時,將彈出一個窗口以顯示其全部內容。

直接編輯窗口中的內容將同時對單元生效。

尖端:點擊 庫工具 > 增強的編輯欄 關閉該功能。

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。

最佳辦公生產力工具

🤖 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Pp nhập mã VBA: "Khác+F11", Khác là phím nào trên bàn phím ạ
This comment was minimized by the moderator on the site
Hi Nguyen Xuan Hoa,

There is no difference, you just need to select the appropriate keys on your keyboard. Or you can open the Microsoft Visual Basic for Applications window by clicking Developer > Visual Basic on the Excel ribbon.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/visual.png
This comment was minimized by the moderator on the site
Is there a way to have the go to the beginning of the cell when entering it rather than the end of the cell?
This comment was minimized by the moderator on the site
Hi,To display the cursor at the beginning of the selected cell, the following VBA code can help. Please have a try.<div data-tag="code">Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Updated by Extendoffice 20211231
SendKeys "{F2}{HOME}"
End Sub
This comment was minimized by the moderator on the site
Great. Any way to set it up in VGA so that I can select a column or large column of data and just run it? - entering and exiting the cells until complete? Random request but I've been sent a data source and excel isn't detecting the dates in the cells until you have been in and out of the cell. I am a newbie, so any help is appreciated.
This comment was minimized by the moderator on the site
Hi Andy,
Sorry can't help you with that.
This comment was minimized by the moderator on the site
(grateful emoji)!   Thank you ma'am! (or a word that expresses the utmost respect in whatever gender you identify with) (red heart emoji)
This comment was minimized by the moderator on the site
This is very helpful! Is there a way to apply the sendkeys F2 to only 1 cell in the worksheet? I don't need every cell that I click to go into edit mode, I only need one to do it.
This comment was minimized by the moderator on the site
2 thumbs up
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations