My blog with random stuff

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.
Posted by Csenger Attila Szabo at 13:35 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: all, document, frames, how to, office, remove, word
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2019 (2)
    • ►  October (1)
    • ►  June (1)
  • ►  2017 (5)
    • ►  December (1)
    • ►  October (1)
    • ►  September (2)
    • ►  March (1)
  • ►  2016 (5)
    • ►  November (1)
    • ►  August (1)
    • ►  March (2)
    • ►  January (1)
  • ▼  2015 (17)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  April (2)
    • ►  March (2)
    • ▼  February (1)
      • How to remove all frames from document in Microsof...
    • ►  January (3)
  • ►  2014 (7)
    • ►  December (2)
    • ►  November (1)
    • ►  July (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2013 (20)
    • ►  December (1)
    • ►  November (1)
    • ►  October (3)
    • ►  July (3)
    • ►  June (3)
    • ►  May (2)
    • ►  April (6)
    • ►  March (1)

About Me

Csenger Attila Szabo
View my complete profile
Awesome Inc. theme. Powered by Blogger.