TextRange.Text property (PowerPoint)

Returns or sets a String that represents the text contained in the specified object. Read/write.

Syntax

expression.Text

expression A variable that represents a TextRange object.

Return value

String

Example

This example sets the text and font style for the title on slide one in the active presentation.

Set myPres = Application.ActivePresentation

With myPres.Slides(1).Shapes.Title.TextFrame.TextRange

    .Text = "Welcome!"

    .Font.Italic = True

End With

See also

TextRange Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.