Selection Property
Applies To
DocumentWindow object.
Description
Returns a Selection object that represents the selection in the specified document window. Read-only.
See Also
Select method, SelectAll method, Unselect method.
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