TextRange Property

Applies To

Selection object, TextFrame object.

Description

Selection object: Returns a TextRange object that represents the selected text. Read-only.

TextFrame object: Returns a TextRange object that represents the text in the specified text frame. Read-only.

Remarks

You can construct a text range from a selection only when the presentation is in slide view or outline view.

See Also

Text property, TextFrame property.

Example

This example makes the selected text in window one bold.

Windows(1).Selection.TextRange.Font.Bold = True