跳到主要内容

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

是否有技巧删除工作簿中的多个文本框? 逐个删除每个文本框非常耗时。 实际上,有几种方法可以帮助您快速删除所有文本框:


使用“转到”功能删除活动工作表中的所有文本框或其他对象

1。 点击 F5 or 按Ctrl + G 显示 转到 对话框,然后单击 特别..,请参见屏幕截图:

2。 在弹出 定位条件 对话框中选择 对象,然后单击 OK 按钮, 看截图:

3。 并且当前工作表中的所有对象都已被选中,请参见屏幕截图:

4.然后,您只需要按 删除 在键盘上按键以删除所有这些文本框以及其他对象。

备注:此方法不仅会删除所有文本框,还会删除活动工作表中的各种形状,包括图片,剪贴画,形状,SmartArt,图表等。

使用VBA代码删除活动工作表中的所有文本框

有时您可能只想删除文本框,而又保留其他形状,例如图表,图片,那么VBA宏是仅在活动工作表中删除所有文本框的不错选择,请执行以下步骤:

1。 按住 ALT + F11 键,然后打开 Microsoft Visual Basic应用程序 窗口。

2。 点击 插页 > 模块,然后将以下宏粘贴到 模块 窗口。

VBA代码:从当前工作表中删除所有文本框:

Sub DeleteAllTextBoxes()
ActiveSheet.TextBoxes.Delete
End Sub

3。 按 F5 键以运行此宏,并且仅删除当前工作表中的文本框,请参见屏幕截图:


删除具有方便功能的活动工作表,选定工作表或工作簿中的所有文本框

Kutools for Excel's 删除插图和对象 可以帮助您仅删除活动工作表,所选工作表或整个工作簿中的文本框,而不会影响其他形状。

请注意:申请这个 删除插图和对象,首先,您应该下载 Kutools for Excel,然后快速轻松地应用该功能。

安装后 Kutools for Excel,请这样做:

1。 点击 库工具 > 删除删除插图和对象,请参见屏幕截图:

2。在 删除插图和对象 对话框,检查 文本框 选项,然后指定要从中删除文本框的范围,请参见屏幕截图:

3。 然后,点击 OK。 并且所有文本框将根据您选择的选项立即被删除在活动工作表,选定的工作表或整个工作簿中。

Tips: Kutools for Excel'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 Tab 为 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