Windows Property

Microsoft PowerPoint Visual Basic

ShowWindows property as it applies to the Application object.

Returns a DocumentWindows collection that represents all open document windows. Read-only.

ShowWindows property as it applies to the Presentation object.

Returns a DocumentWindows collection that represents all document windows associated with the specified presentation. This property doesn't return any slide show windows associated with the presentation. Read-only.

For information about returning a single member of a collection, see Returning an Object from a Collection.

Example

ShowAs it applies to the Application object.

This example closes all windows except the active window.

With Application.Windows
    For i = .Count To 2 Step -1
        .Item(i).Close
    Next
End With