Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.WindowSelectionChange Event (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Occurs when the selection of text, a shape, or a slide in the active document window changes, whether in the user interface or in code.

Syntax

expression. WindowSelectionChange( Sel )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
SelRequiredSelectionRepresents the object selected.

Example

This example determines when a different slide is being selected and changes the background color of the newly selected slide.

Private Sub App_WindowSelectionChange(ByVal Sel As Selection)

    With Sel
        If .Type = ppSelectionNone Then
            With .SlideRange(1)
                .ColorScheme.Colors(ppBackground).RGB = _
                    RGB(240, 115, 100)
            End With
        End If
    End With

End Sub

See also

Concepts

Application Object

© 2017 Microsoft