Wednesday, February 4, 2015

How to remove all frames from document in Microsoft Word with VBA code

1. Press Alt + F11 to open Visual Basic window.
2. Go to Insert -> Module
3. Paste the following code in the window appearing:

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


4. Click the Run button or press F5.

No comments:

Post a Comment