框架用于放置包含某些项目的文本或图形。 如何将帧插入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.