提示:其他語言是Google翻譯的。 你可以訪問 English 版本。
登入
x
or
x
x
註冊
x

or

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

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

手動從文檔中逐個刪除幀

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

只需單擊Kutools for Word,即可從文檔中刪除所有框架

Kutools for Word: 添加100新的高級功能 到Word 2003 / 2007 / 2010 / 2013 / 2016 / 2019。
Office Tab:啟用 在Office中選項卡式編輯和瀏覽,就像Chrome,Firefox,IE 8 / 9 / 10一樣。
Classic Menu for Office: 帶回Office 2003的舊樣子 到Office 2007,2010,2013,2016和2019。

箭頭藍色右泡手動從文檔中逐個刪除幀

用戶可以手動刪除單個框架。 如下步驟:

步驟1:選擇你想要刪除的框架;

Step2:右鍵單擊然後單擊 格式框架.

DOC-removeframe-1

步驟3:點擊 刪除框架 in 框架 對話框。

DOC-removeframe-2

如果有太多的框架要刪除,使用這種方式將浪費你的時間。


箭頭藍色右泡使用VBA代碼刪除文檔中的所有框架

VBA代碼可以快速刪除文檔中的所有幀,如下所示:

步驟1:按 Alt + F11 打開VBA窗口;

步驟2:點擊 模塊插入 標籤,把代碼放進去 模塊 窗口;

步驟3:點擊 DOC-反向登錄6 按鈕或按下 F5 應用VBA。

刪除所有幀的VBA代碼:

Sub RemoveFrames()
昏暗的框架
對於ActiveDocument.Frames中的每個frm
frm.Delete
下一個frm
END SUB


箭頭藍色右泡只需單擊Kutools for Word,即可從文檔中刪除所有框架

Kutools for Word提供刪除所有框架的功能,您只需點擊一下。

Kutools for Word,一個方便的插件,包括工具組,以減輕您的工作,並提高您的能力,處理word文檔。 免費試用45天! 立即行動吧!

點擊 Kutools >點擊 全部刪除 in 明確 組>單擊 刪除幀 從下拉列表中。 看截圖:

DOC-removeframe-3

欲了解更多信息 刪除幀, 請拜訪: 刪除框架功能說明.




Kutools for Word

超過Word 100,2003,2007,2010,2013和2016的2019高級功能

拍攝-kutools-700  -  225-KTE

更多功能 | 免費下載 | 只有$ 39.00數百個函數

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Help please · 9 months ago
    does anyone know a way to undo the VBA change suggested?
  • To post as a guest, your comment is unpublished.
    Horus · 1 years ago
    Worked great for my 40-page doc. Thanks!
  • To post as a guest, your comment is unpublished.
    Martha · 2 years ago
    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,
    • To post as a guest, your comment is unpublished.
      Shaunda · 2 years ago
      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?
  • To post as a guest, your comment is unpublished.
    Sharjeel · 3 years ago
    Really Worked thanks :-)
  • To post as a guest, your comment is unpublished.
    RJ Juan · 3 years ago
    Very cool solution! Saved me a lot of time and effort. Thanks!