Text Property

Microsoft PowerPoint Visual Basic

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.

ShowText 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

ShowAs 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