title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
DocumentWindow.Selection property (PowerPoint) |
vbapp10.chm511003 |
|
|
0cd670b2-53a5-87d7-8b38-761920dd9758 |
06/08/2017 |
medium |
Returns a Selection object that represents the selection in the specified document window. Read-only.
expression.Selection
expression A variable that represents a DocumentWindow object.
Selection
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
[!includeSupport and feedback]