How to remove all frames in Word?


VBA code can quickly remove all frames from document, do as follows:

Step 1: Press Alt+F11 to open VBA window;

Step 2: Click Module from Insert tab, put the code into Module window;

Step 3: Click Rundoc-reverse-sign-6 button or press F5 to apply the VBA.

The VBA code to remove all frames:

Sub RemoveFrames()
Dim frm As Frame
For Each frm In ActiveDocument.Frames
frm.Delete
Next frm
End Sub

Source: http://www.extendoffice.com/documents/word/744-word-remove-frame.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s