TextFrame2.TextRange Property (PowerPoint)
Returns a TextRange object that represents the text in the specified text frame. Read-only.
Syntax
expression .TextRange
expression An expression that returns a TextFrame2 object.
Return Value
TextRange
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