SlideShowWindow.Active Property
Returns whether the specified pane or window is active. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Active As MsoTriState
Get
'Usage
Dim instance As SlideShowWindow
Dim value As MsoTriState
value = instance.Active
MsoTriState Active { get; }
Property Value
Type: Microsoft.Office.Core.MsoTriState
MsoTriState
Remarks
The value returned by the Active property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The specified pane or window is inactive. |
msoTrue |
The specified pane or window is active. |
Examples
This example checks to see if the presentation file is in the active window. If not, it saves the name of the presentation that is currently active in the variable oldWin and activates the presentation.
With Application.Presentations("test.ppt").Windows(1)
If Not .ActiveThen
Set oldWin = Application.ActiveWindow
.Activate
End If
End With