提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

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

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

单击一下即可删除选定内容中的所有帧或Word中的整个文档

Kutools for Word,一个出色的Word插件,发布了一个方便的删除框架功能,可以帮助您从Word中删除所有框架,只需单击一下即可从Word中删除整个文档。 单击以获取60天的免费试用!
doc删除宏ktw

Kutools for Word:一个功能强大的加载项包含100 +工具,它可以在您的Word日常工作中提高80%的工作效率! 现在得到它!


手动从文档中逐个删除帧

用户可以通过Word中的“格式化框架”功能手动删除单个框架。 请做如下:

此方法一次只能删除一个帧。 要批量删除所有相框,请访问以下内容 VBA or Kutools.

1。 选择要删除的帧,右键单击,然后选择 格式框架 从上下文菜单。

2:在弹出框架对话框中,请单击 删除相框 按钮。

现在,立即删除当前选定的帧。


使用VBA代码删除文档中的所有框架

VBA代码可以快速从批量中删除整个Word文档中的所有帧。 请做如下:

1。 按 Alt + F11 打开“Microsoft Visual Basic for Applications”窗口。

2。 单击“插入”>“模块”,然后将VBA代码粘贴到新的打开模块窗口中。

用于删除所有帧的VBA代码:

Sub RemoveFrames()Dim frm As Frame for Each frm在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 > 删除 > 删除帧,所有帧将立即从整个文档中删除。 看截图:

如果要从特定选择中删除所有帧,请先选择文档的一部分,然后单击“单击” Kutools > 删除 > 删除帧.



推荐的Word生产力工具

Kutools For Word - 超过100 Word的高级功能,节省您的50%时间

  • 复杂和重复的操作可以在几秒钟内完成一次性处理。
  • 一次将多个图像跨文件夹插入Word文档。
  • 将多个文件夹合并并组合成一个具有所需订单的文件。
  • 根据标题,分节符或其他标准将当前文档拆分为单独的文档。
  • 在Doc和Docx,Docx和PDF之间转换文件,用于常见转换和选择的工具集合等等......
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 · 1 years ago
    does anyone know a way to undo the VBA change suggested?
  • To post as a guest, your comment is unpublished.
    Horus · 2 years ago
    Worked great for my 40-page doc. Thanks!
  • To post as a guest, your comment is unpublished.
    Martha · 3 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 · 4 years ago
    Very cool solution! Saved me a lot of time and effort. Thanks!
  • To post as a guest, your comment is unpublished.
    Rohit Mishra · 4 years ago
    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
    • To post as a guest, your comment is unpublished.
      Will · 3 years ago
      No it doesnt seem to keep formatting. All formatting is gone :(
  • To post as a guest, your comment is unpublished.
    sojib · 4 years ago
    Thanks a lot..........
  • To post as a guest, your comment is unpublished.
    Jayakumar · 5 years ago
    Its really awesome within a second. Game over...