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

TextFrame2.TextRange Property (PowerPoint)

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

Returns a TextRange2 Object (PowerPoint) object that represents the text in the specified text frame. Read-only.

Syntax

expression. TextRange2

expression An expression that returns a TextFrame2 object.

Return Value

TextRange2

Example

This example shows how to set the text for shape one on slide one of the active presentation to the word "Hello!"

Public Sub TextRange_Example()



    Dim pptSlide As Slide

    Set pptSlide = ActivePresentation.Slides(1)

    pptSlide.Shapes(1).TextFrame2.TextRange = "Hello!"



End Sub

See also

Concepts

TextFrame2 Object

© 2018 Microsoft