跳到主要內容

如何將文本框鏈接到Excel中的特定單元格?

您知道如何將文本框鏈接到Excel中的單元格嗎? 這樣,您可以使用文本框設置單元格值的格式並更改文本框的顏色,並且當更改鏈接單元格中的值時,文本框將自動更新。 本文將向您展示將文本框快速鏈接到Excel中特定單元格的絕妙技巧。

將文本框鏈接到Excel中的特定單元格


將文本框鏈接到Excel中的特定單元格

在Microsoft Excel中,我們可以將文本框鏈接到特定的單元格,以在文本框中顯示鏈接的單元格內容。 此外,如果更改鏈接單元格的值,則文本框將自動更新。 您可以按照以下步驟進行操作:

步驟1:點擊 文本框 按鈕下 插入 標籤,然後在工作表中插入一個文本框。

步驟2:在選中文本框後,將光標置於編輯欄中,鍵入 = 符號,然後單擊要鏈接的單元格,最後按 Enter 鍵。 看截圖:

現在,文本框在文本框中顯示鏈接的單元格A3的內容。 此外,當我們更改鏈接的單元格A3中的內容時,文本框中的內容將自動更新。


最佳辦公生產力工具

熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

kte選項卡201905


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Please refer attached snap
This comment was minimized by the moderator on the site
To reduce manual error of not updating particular value in text box which ideally should be same as page no. in top right cell, so I was thinking if we could link the content in text box with the content in cell.Can anyone help me on this?
This comment was minimized by the moderator on the site
Is there any way I can change a negative number (coming through a link) in a text box with bracket in place of "-ve" sign
This comment was minimized by the moderator on the site
How to give a link from textbox to cell
Not from cell to textbox
This comment was minimized by the moderator on the site
Thank you very much for your this useful post. I rescue me from trucking in how to do paste data onto the text box.
This comment was minimized by the moderator on the site
I have part numbers that I put in my spreadsheet for certain machines using a text box. Now, how can I search for the part number that is in a text box in Excel?
This comment was minimized by the moderator on the site
Is it possible to link multiple cells to the same text box so clicking different cells displays different text?
This comment was minimized by the moderator on the site
Dear guy,
Please insert an ActiveX textbox in your worksheet first. Then right click the sheet tab, select View Code from the right-clicking menu, copy and paste below VBA code into the Code window.
VBA code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Column = 3 Then ActiveSheet.TextBox1.Text = Target
End Sub
Note: In the above code, the number 3 indicates the column number which your linked cells locate, and Textbox1 is the textbox name you inserted, please change them to your need.
Thank you for your comment!
This comment was minimized by the moderator on the site
Hello, This information is very useful thank you! Is there a way to do the opposite? Link a cell to the textbox? Thank you
This comment was minimized by the moderator on the site
Is it possible to also link the color? For example, if the cell is red can the text box fill color also be set red automatically?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations