跳到主要內容

如何從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 for Applications 窗口;

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  /  將頁面匯出為圖像  /  一次列印多個文件...

內容編輯: 批量查找和替換 跨多個文件  /  調整所有圖片的大小  /  轉置表行和列  /  將表格轉換為文字...

🧹 輕鬆清潔: 移開 多餘的空間  /  分節符  /  所有標題  /  文本框  /  超鏈接  / 如需更多拆卸工具,請前往我們的 刪除組...

創意插入: 插入 千位分隔符  /  複選框  /  單選按鈕  /  QR Code  /  條碼  /  對角線表  /  公式標題  /  圖片說明  /  表格標題  /  多張圖片  / 發現更多 插入組...

🔍 精準選擇:精確定位 特定頁面  /    /  形狀  /  標題段落  / 增強導航功能 更多 選擇功能...

星級增強: 快速導航至任何位置  /  自動插入重複文字  /  在文檔視窗之間無縫切換  /  11 轉換工具...

???? 想嘗試這些功能嗎? Kutools for Word 提供了 60天免費試用,沒有任何限制! 🚀
 
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