Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange.Text Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Concepts

TextRange Object

© 2018 Microsoft