Share via


TextFrame.DeleteText Method

PowerPoint Developer Reference

Deletes the text associated with the specified shape.

Syntax

expression.DeleteText

expression   A variable that represents a TextFrame object.

Example

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

Visual Basic for Applications
  Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes(2).TextFrame.DeleteText

See Also