TextFrame.DeleteText Method (Word)

Deletes the text from a text frame and all the associated properties of the text, including font attributes.

Version Added: Word 2010

expression .DeleteText

expression A variable that represents a TextFrame object.

The following code example deletes the text from the first shape in the active document, if that shape contains text.

Public Sub DeleteText_Example() 
 ActiveDocument.Shapes(1).TextFrame.DeleteText 
End Sub
Show: