跳到主要內容

如何快速刪除Excel中的所有文本框?

作者:凱莉 最後修改時間:2021-01-07

是否有技巧刪除工作簿中的多個文本框? 逐個刪除每個文本框非常耗時。 實際上,有幾種方法可以幫助您快速刪除所有文本框:


使用“轉到”功能刪除活動工作表中的所有文本框或其他對象

1。 點擊 F5 or 按Ctrl + G 顯示 轉到 對話框,然後單擊 特別..,請參見屏幕截圖:

2。 在彈出 去特別 對話框中選擇 對象,然後單擊 OK 按鈕, 看截圖:

3。 並且當前工作表中的所有對像都已被選中,請參見屏幕截圖:

4.然後,您只需要按 刪除 按下鍵盤上的鍵以刪除所有這些文本框以及其他對象。

備註:此方法不僅會刪除所有文本框,還會刪除活動工作表中的各種形狀,包括圖片,剪貼畫,形狀,SmartArt,圖表等。

使用VBA代碼刪除活動工作表中的所有文本框

有時您可能只想刪除文本框,而又保留其他形狀,例如圖表,圖片,那麼VBA宏是僅在活動工作表中刪除所有文本框的不錯選擇,請執行以下步驟:

1。 按住 ALT + F11 鍵,然後打開 Microsoft Visual Basic for Applications 窗口。

2。 點擊 插入 > 模塊,然後將以下宏粘貼到 模塊 窗口。

VBA代碼:從當前工作表中刪除所有文本框:

Sub DeleteAllTextBoxes()
ActiveSheet.TextBoxes.Delete
End Sub

3。 按 F5 鍵以運行此宏,並且僅刪除當前工作表中的文本框,請參見屏幕截圖:


刪除具有方便功能的活動工作表,選定工作表或工作簿中的所有文本框

Excel的Kutools's 刪除插圖和對象 可以幫助您僅刪除活動工作表,所選工作表或整個工作簿中的文本框,而不會影響其他形狀。

注意:要應用此 刪除插圖和對象,首先,您應該下載 Excel的Kutools,然後快速輕鬆地應用該功能。

安裝後 Excel的Kutools,請這樣做:

1。 點擊 庫工具 > 刪除刪除插圖和對象,請參見屏幕截圖:

2. 。 In在 刪除插圖和對象 對話框,檢查 文本框 選項,然後指定要從中刪除文本框的範圍,請參見屏幕截圖:

3。 然後,點擊 OK。 並且所有文本框將根據您選擇的選項一次被刪除在活動工作表,選定的工作表或整個工作簿中。

保養竅門: Excel的Kutools's 插圖與對象 功能可以幫助我們刪除所有 圖表,折線,圖片,自動形狀,智能藝術,文本框,鏈接的OLE對象嵌入式OLE對象 在活動工作表,所選工作表或當前工作簿的所有工作表中(根據需要)。  點擊了解更多…

更多相關文章:

  • 在Excel中刪除所有隱藏的行或列
  • 如果您有一個很大的工作簿,其中包含許多隱藏的行和列,而現在隱藏的數據不可用,那麼您想要刪除所有這些。 您如何快速刪除它們?
  • 在Excel中快速刪除多個空列
  • 有時,當您從某些來源(例如網頁,CSV,文本等)將數據導入Microsoft Excel時,可能會有許多空列。 刪除每個空列必須是耗時的。 因此,我們中的某些人尋求解決此問題的簡便方法。 本文收集了一些技巧性的技巧,以幫助您快速刪除多個空列。

最佳辦公生產力工具

🤖 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 (29)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Very Tank you
This comment was minimized by the moderator on the site
How are you

Hoping someone can help me

What I want to do is a program or use Excel so that with a click on a text box or image it goes and sends signals to the parallel port (it can be half a second or something, it doesn't need to stay on
And so if I have 16 buttons or text boxes, every time they click on it, I send signals to the parallel post

I don't know if any of you can help me know how to do it or where to get the information or where to post the information to get an answer to my question.

Greetings and thanks in advance

PS: I will make about 16 text boxes that, when pressed, change color from white to green and at the same time send a signal to the parallel port (from 1 to 8 bits) and trigger 16 relays... thx again
This comment was minimized by the moderator on the site
How are you

Hoping someone can help me

What I want to do is a program or use Excel so that with a click on a text box or image it goes and sends signals to the parallel port (it can be half a second or something, it doesn't need to stay on
And so if I have 16 buttons or text boxes, every time they click on it, I send signals to the parallel post

I don't know if any of you can help me know how to do it or where to get the information or where to post the information to get an answer to my question.

Greetings and thanks in advance

PS: I will make about 16 text boxes that, when pressed, change color from white to green and at the same time send a signal to the parallel port (from 1 to 8 bits) and trigger 16 relays... thx again
This comment was minimized by the moderator on the site
Muchas gracias, me ha sido de gran ayuda.
This comment was minimized by the moderator on the site
Thank you, exel in my company almost not work and that helped
This comment was minimized by the moderator on the site
Thank you very much.

It was textboxes that slowed my excel sheet
This comment was minimized by the moderator on the site
the VBA system worked for me 6 months ago but now giving a 'run time error' out of memory. Reseted computer with only the excel open and nothing running heavy in the background. Any clues?
This comment was minimized by the moderator on the site
useful article.
This comment was minimized by the moderator on the site
delete text box but keep the value is possible
This comment was minimized by the moderator on the site
GOD BLESS YOU!!!! WAS AN ANNOYING FREAKING OBJECT!!! Problem Solved!!!!
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