跳到主要内容

如何从Word中的文档中删除/删除所有表

删除Word中的所有表通常应用于日常办公室工作,如何快速删除所有表? 本教程将介绍三种简单的方法来删除所有表。

 
 
 
 
 

一流的工具可帮助您一键式删除Word文档中的所有表

一般来说,在Word中删除表格很容易。然而,手动将多个表一一删除会非常耗时且繁琐。在这里,通过 Kutools for Word 的 删除表格 功能,您只需单击一下即可轻松删除特定选择或整个 Word 文档中的所有表格!


Kutools for Word:一个功能强大的加载项包含100多种工具,可以在您的Word日常工作中提高80%的工作效率! 立即获取!

推荐的Word生产工具

Kutools for Word:整合人工智能 🤖,超过 100 种高级功能可节省 50% 的文档处理时间。免费下载

Office Tab:在 Word(和其他 Office 工具)中引入类似浏览器的选项卡,简化了多文档导航。免费下载


在Word中手动删除表格

实际上,您可以在Word中手动删除表。 请执行以下操作:

此方法将一次删除一个表。 如果您需要批量删除所有表格,请访问下面的 VBA or 库工具.

在Word中,将光标置于指定的表中以将其激活,然后单击表左上角corer处的叉号以选择整个表,然后选择 删除 > 删除表格 删除它。 看截图:

备注:您还可以将光标置于指定的表中以将其激活,然后单击布局>删除>删除表以删除该表。 看截图:


使用VBA删除所有表

使用上述方法手动删除多个表将非常耗时。 在这里,此方法将引入VBA,以一次从当前Word文档中批量删除所有表。 请执行以下操作:

1: 按 Alt + F11 打开 Microsoft Visual Basic应用程序 窗口;

2:点击 插入>模块,然后将以下VBA代码粘贴到 模块 窗口;

VBA:从当前的Word文档中删除所有表

Sub Removetables ()
Dim oTable As Table
For Each oTable In ActiveDocument.Tables
oTable.Delete
Next oTable
End Sub

3:点击 运行  按钮或按下 F5 应用VBA的关键。


使用 Kutools for Word 删除所有表格

某些用户可能不熟悉VBA代码。 慢慢来! Kutools for Word's 删除表 实用程序将帮助您单击一下即可一次删除某个选定内容中的所有表格或整个文档!

Kutools for Word:一个功能强大的加载项包含100多种工具,可以在您的Word日常工作中提高80%的工作效率! 立即获取!

只需点击 库工具 > 删除 > 删除表,所有表将立即从当前Word文档中删除。

备注:如果要从某个选择中删除所有表,请首先选择文档的一部分,然后单击 库工具 > 删除 > 删除表.


相关文章:


最佳办公生产力工具

Kutools for Word - 通过 Over 提升您的文字体验 100 显着特点!

🤖 Kutools 人工智能助手:用人工智能改变你的写作 - 生成内容  /  重写文本  /  总结文件  /  查询资料 基于文档,全部在Word中

📘 文档掌握: 分页  /  合并文件  /  以各种格式导出选择(PDF/TXT/DOC/HTML...)  /  批量转换为PDF  /  将页面导出为图像  /  一次打印多个文件...

内容编辑: 批量查找和替换 跨多个文件  /  调整所有图片的大小  /  转置表行和列  /  将表格转换为文字...

🧹 轻松清洁: 移开 多余的空间  /  分节符  /  所有标题  /  文本框  /  超链接  / 如需更多拆卸工具,请前往我们的 删除组...

创意插入: 插 千位分隔符  /  复选框  /  单选按钮  /  扫码支付  /  条码  /  对角线表  /  公式标题  /  图片说明  /  表标题  /  多张图片  / 发现更多 插入组...

🔍 精准选择:精确定位 特定页面  /    /  形状  /  标题段落  / 增强导航功能 更多 选择功能...

星级增强: 快速导航至任何位置  /  自动插入重复文本  /  在文档窗口之间无缝切换  /  11 转换工具...

👉 想尝试这些功能吗? Kutools for Word 提供了 60-day免费试用,没有任何限制! 🚀
 
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I just want to remove some tables -- not all.
This comment was minimized by the moderator on the site
Hi, for only remove some tbale, for example, remove the tables in a selection, the Remove tables of Kutools for Word can help you. Kutools for Word supports 60-day free trial without any limitions.
This comment was minimized by the moderator on the site
It removed my text. I need to keep the text and just remove the table.
This comment was minimized by the moderator on the site
If you want to remove table but keep text, you need to convert table to text, this tutorial will help you: How To Convert Multiple Tables To Text In Word?
This comment was minimized by the moderator on the site
The keyword For is missing from the line number 3. The correct code is: Sub Removetables () Dim oTable As Table For Each oTable In ActiveDocument.Tables oTable.Delete Next oTable End Sub
This comment was minimized by the moderator on the site
Thank you @anon It works.............
This comment was minimized by the moderator on the site
The VBA code does not work. I get "Compile error: Syntax error".
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations