Active Property

Applies To

Application object, DocumentWindow object, SlideShowWindow object.

Description

True if the specified window is the active window. Read-only Long.

See Also

Activate method, ActivePresentation property, ActiveWindow property.

Example

This example activates window three. If window three isn't the active window, the example saves the active window in the variable oldWin before activating window three.

With Application.Presentations("test.ppt").Windows(1)
    If Not .Active Then
        Set oldWin = Application.ActiveWindow
        .Activate
    End If
End With