Skip to content

Latest commit

 

History

History
57 lines (30 loc) · 1013 Bytes

PowerPoint.DocumentWindow.Selection.md

File metadata and controls

57 lines (30 loc) · 1013 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
DocumentWindow.Selection property (PowerPoint)
vbapp10.chm511003
vbapp10.chm511003
PowerPoint.DocumentWindow.Selection
0cd670b2-53a5-87d7-8b38-761920dd9758
06/08/2017
medium

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

DocumentWindow Object

[!includeSupport and feedback]