跳到主要內容

如何刪除Word中的所有框架?

框架用於放置包含某些項目的文本或圖形。 如何在Word文檔中插入框架? 但是有時框架會導致文檔難以編輯,因為所有文本都放置在框架內。 如何輕鬆地從Word中的文檔中刪除框架?

一鍵式刪除所選內容中的所有框架或Word中的整個文檔

Kutools for Word是一個出色的Word加載項,它發布了方便的“刪除框架”功能,該功能可以幫助您僅單擊一下即可從Word中的特定選擇或整個文檔中刪除所有框架。


doc刪除宏ktw

Kutools for Word:強大的插件,包含100+工具,可以讓你的Word日常工作效率提升80%! 現在得到它!


一對一地從文檔中手動刪除框架

用戶可以通過Word中的“格式化框架”功能手動刪除單個框架。 請執行以下操作:

此方法一次只能刪除一幀。 要批量刪除所有框架,請訪問下面的 VBA or 庫工具.

1。 選擇要刪除的框架,右鍵單擊並選擇 格式框架 從上下文菜單。

2:在彈出的框架對話框中,請點擊 取下框架 按鈕。

現在,當前選擇的框架立即被刪除。


使用VBA代碼從文檔中刪除所有框架

VBA代碼可以快速從整個Word文檔中批量刪除所有框架。 請執行以下操作:

1。 按 Alt + F11 打開“ Microsoft Visual Basic應用程序”窗口。

2。 單擊插入>模塊,然後將VBA代碼下方粘貼到新打開的模塊窗口中。

VBA代碼刪除所有框架:

Sub RemoveFrames()
Dim frm As Frame
For Each frm In ActiveDocument.Frames
frm.Delete
Next frm
End Sub

3。 點擊 按鈕或按下 F5 應用VBA。

現在,立即將所有框架從當前Word文檔中批量刪除。


使用Kutools for Word一鍵式刪除文檔中的所有框架

如果您已經安裝了Kutools for Word,則可以應用其刪除框架功能來快速刪除特定選擇中的所有框架,或者只需單擊一下即可批量刪除整個文檔。 請執行以下操作:

Kutools for Word:強大的插件,包含100+工具,可以讓你的Word日常工作效率提升80%! 現在得到它!

只需點擊 庫工具 > 清除 > 移除框架,所有框架將立即從整個文檔中刪除。 看截圖:

如果要刪除某個選擇中的所有框架,請首先選擇文檔的一部分,然後單擊 庫工具 > 清除 > 移除框架.

最佳辦公生產力工具

Kutools for Word - 透過 Over 提升您的文字體驗 100 顯著特點!

深入了解下面突出顯示的功能或 按此探索 Kutools for Word 的全部功能.

📘 文件掌握: 分頁  /  合併文件  /  以各種格式匯出選擇(PDF/TXT/DOC/XLSX)  /  批次轉換為PDF  /  將頁面匯出為圖像  /  一次列印多個文件 ...

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

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

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

🔍 精準選擇: 精確定位特定頁面  /    /  形狀  /  標題段落  /  使用我們的選擇組輕鬆導航

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

使用 Kutools 轉換您的 Word 任務。 👉 立即下載並試用 30 天 🚀。

閱讀更多       免費下載      購買
 
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
does anyone know a way to undo the VBA change suggested?
This comment was minimized by the moderator on the site
Worked great for my 40-page doc. Thanks!
This comment was minimized by the moderator on the site
Hi, This would be great if it worked for me! I've got a 13 page document with a 7 page table in a frame. I can't get this to work. I get run time error 4605. When I choose debug, it says the line frm.Delete is the problem. Any idea what my problem is? I'd really rather not have to reconstruct this table. How do tables get stuck in frames anyway? It makes the table difficult to work with and doesn't seem to serve any purpose. Thanks so much,
This comment was minimized by the moderator on the site
I've had frames popping up into my documents for the last several weeks, just randomly. The template that my documents are based off do not use frames, but somehow they're showing up. I'm trying to run this macro but continue to get an error if there is any text in between the different frames. Anyone know why? Either why they're now showing up or why the code won't work?
This comment was minimized by the moderator on the site
Really Worked thanks :-)
This comment was minimized by the moderator on the site
Very cool solution! Saved me a lot of time and effort. Thanks!
This comment was minimized by the moderator on the site
Hi, Will this tool remove the frames from word document without messing up with the formatting. I used many tools to remove frames which contained text inside them. They were all able to remove the frames and take out the text but formatting was gone and had to do the formatting all over again. Regards, Rohit
This comment was minimized by the moderator on the site
No it doesnt seem to keep formatting. All formatting is gone :(
This comment was minimized by the moderator on the site
Thanks a lot..........
This comment was minimized by the moderator on the site
Its really awesome within a second. Game over...
This comment was minimized by the moderator on the site
can i foward to you the document to remove the frames for me.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations