A
andreas
Dear Experts:
I would like to be able to delete ALL FRAMES in a document using VBA.
Below macro regrettably only deletes the frames but not the text that
is located in the frames. How can I ask Word to delete the frames
including the contents of these frames. Help is appreciated. Thank
you very much in advance.
Regards, Andreas
Sub RemoveFrames()
'Deleting all frames in a document
Dim frm As Frame
For Each frm In ActiveDocument.Frames
frm.Delete
Next frm
End Sub
I would like to be able to delete ALL FRAMES in a document using VBA.
Below macro regrettably only deletes the frames but not the text that
is located in the frames. How can I ask Word to delete the frames
including the contents of these frames. Help is appreciated. Thank
you very much in advance.
Regards, Andreas
Sub RemoveFrames()
'Deleting all frames in a document
Dim frm As Frame
For Each frm In ActiveDocument.Frames
frm.Delete
Next frm
End Sub