DeleteText Method

Applies To

TextFrame object.

Description

Deletes the text associated with the specified shape.

Syntax

expression.DeleteText

expression Required. An expression that returns a TextFrame object.

See Also

Clear method, ClearAll method, Delete method.

Example

If shape two on myDocument contains text, this example deletes the text.

Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes(2).TextFrame.DeleteText