DocumentWindow.Selection property (PowerPoint)
Returns a Selection object that represents the selection in the specified document window. Read-only.
Syntax
expression.Selection
expression A variable that represents a DocumentWindow object.
Return value
Selection
Example
If there's text selected in the active window, this example makes the text italic.
With Application.ActiveWindow.Selection
If .Type = ppSelectionText Then
.TextRange.Font.Italic = True
End If
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.