Text Property

Text property as it applies to the HeaderFooter, TextEffectFormat, and TextRange objects.

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

expression.Text

*expression   * Required. An expression that returns one of the above objects.

Text property as it applies to the Comment object.

Returns a String that represents the text in a comment. Read-only.

expression.Text

*expression   * Required. An expression that returns a Comment object.

Example

As it applies to the TextRange object.

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

Applies to | Comment Object | HeaderFooter Object | TextEffectFormat Object | TextRange Object

See Also | TextFrame Property | TextRange Property