Using Word 2003: I am trying to delete all text frames and the text in
documents. I have tried various For Next routines that have deleted only
some of the frames but have left bordered text in their place. Help!!
--
CLG

Re: Delete text frames and text by Shauna

Shauna
Fri Dec 08 02:21:45 CST 2006

Hi CLG

What kind of frame are we talking about here? The kind that's added from the
Forms toolbar, or the kind that's added from Format > Frames?

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word


"Legal Learning" <LegalLearning@discussions.microsoft.com> wrote in message
news:40798674-22AB-4AFE-AA96-484FC927C0C7@microsoft.com...
> Using Word 2003: I am trying to delete all text frames and the text in
> documents. I have tried various For Next routines that have deleted only
> some of the frames but have left bordered text in their place. Help!!
> --
> CLG



Re: Delete text frames and text by Stefan

Stefan
Fri Dec 08 02:34:45 CST 2006

To delete all frames and preserve the text, you can select the whole
document and press Ctrl+Q. If frame formatting was applied via styles,
just clear the frame via the Modify Style dialog box.

To clear all frames and their text, you can use the following macro:

Sub RemoveFrames()
Dim f As Frame
For Each f In ActiveDocument.Content.Frames
f.Range.Text = ""
f.Delete
Next f
End Sub

To remove all text boxes, including their contents:

Sub DeleteTextBoxes()
Dim s As Shape
For Each s In ActiveDocument.Shapes
If s.Type = msoTextBox Then
s.Delete
End If
Next s
End Sub

--
Stefan Blom
Microsoft Word MVP


"Legal Learning" wrote in message
news:40798674-22AB-4AFE-AA96-484FC927C0C7@microsoft.com...
> Using Word 2003: I am trying to delete all text frames and the text
in
> documents. I have tried various For Next routines that have deleted
only
> some of the frames but have left bordered text in their place.
Help!!
> --
> CLG