Windows Property

Microsoft PowerPoint Visual Basic

Show All

Windows Property

       

Windows property as it applies to the Application object.

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

Windows 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

As 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