框架用於放置包含某些項目的文本或圖形。 如何在Word文檔中插入框架？ 但有時幀會使文檔難以編輯，因為所有文本都放在幀內。 如何輕鬆地從Word文檔中刪除框架？
1。 選擇要刪除的幀，右鍵單擊，然後選擇 格式框架 從上下文菜單。
2：在彈出框架對話框中，請單擊 刪除框架 按鈕。
1。 按 Alt + F11 打開Microsoft Visual Basic for Applications窗口。
Sub RemoveFrames（）Dim frm As Frame for Each frm在ActiveDocument.Frames frm.Delete Next frm End Sub
3。 點擊 跑 按鈕或按下 F5 應用VBA。
如果您安裝了Kutools for Word，則可以應用其“刪除幀”功能，只需單擊一下即可快速刪除某個選定內容中的所有幀或整個文檔。 請做如下：
只需點擊 Kutools > 清除 > 刪除幀，所有幀將立即從整個文檔中刪除。 看截圖：
如果要從特定選擇中刪除所有幀，請先選擇文檔的一部分，然後單擊“單擊” Kutools > 清除 > 刪除幀.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 years agodoes anyone know a way to undo the VBA change suggested?
To post as a guest, your comment is unpublished.· 2 years agoWorked great for my 40-page doc. Thanks!
To post as a guest, your comment is unpublished.· 3 years agoHi,
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.· 2 years agoI'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.· 3 years agoReally Worked thanks :-)
To post as a guest, your comment is unpublished.· 4 years agoVery cool solution! Saved me a lot of time and effort. Thanks!
To post as a guest, your comment is unpublished.· 4 years agoHi,
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.
To post as a guest, your comment is unpublished.· 4 years agoThanks a lot..........
To post as a guest, your comment is unpublished.