跳到主要内容

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

作者:阿曼达·李 最后修改时间:2019-08-13

框架用于放置包含某些项目的文本或图形。 如何在Word文档中插入框架? 但是有时框架使文档难以编辑,因为所有文本都放置在框架内。 如何轻松地从Word中的文档中删除框架?

一键式删除所选内容中的所有框架或Word中的整个文档

Kutools for Word,一个很棒的Word插件,发布了一个方便的删除框架功能,它可以帮助您只需单击一下即可从Word中的某个选择或整个文档中删除所有框架。


doc删除宏ktw

Kutools for Word:一个功能强大的加载项包含100多种工具,可以在您的Word日常工作中提高80%的工作效率! 立即获取!

推荐的Word生产工具

Kutools for Word:整合人工智能 🤖,超过 100 种高级功能可节省 50% 的文档处理时间。免费下载

Office Tab:在 Word(和其他 Office 工具)中引入类似浏览器的选项卡,简化了多文档导航。免费下载


一对一地手动从文档中删除框架

用户可以通过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 人工智能助手:用人工智能改变你的写作 - 生成内容  /  重写文本  /  总结文件  /  快速获得答案,全部在Word中

📘 文档掌握: 分页  /  合并文件  /  以各种格式导出选择(PDF/TXT/DOC/HTML...)  /  批量转换为PDF  /  将页面导出为图像  /  一次打印多个文件...

内容编辑: 批量查找和替换 跨多个文件  /  调整所有图片的大小  /  转置表行和列  /  将表格转换为文字...

🧹 轻松清洁: 移开 多余的空间  /  分节符  /  所有标题  /  文本框  /  超链接  / 如需更多拆卸工具,请前往 删除组...

创意插入: 插 千位分隔符  /  复选框  /  单选按钮  /  扫码支付  /  条码  /  对角线表  /  公式标题  /  图片说明  /  表标题  /  多张图片  / 发现更多 插入组...

🔍 精准选择:精确定位 特定页面  /    /  形状  /  标题段落  / 增强导航功能 更多 选择功能...

星级增强: 导航到任何位置  /  自动插入重复文本  /  在文档窗口之间切换  /  11 转换工具...

👉 想要尝试这些功能吗?立即下载 Kutools for Word 并体验不同之处! 🚀
 
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
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations