Class DocumentWindows (PowerPoint VBA)

A collection of all the DocumentWindow objects that are currently open in Microsoft PowerPoint. This collection doesn't include open slide show windows, which are included in the SlideShowWindows collection. To use a DocumentWindows class variable it first needs to be instantiated, for example


Dim dws as DocumentWindows
Set dws = ActivePresentation.Windows

Arrange

Arranges all open document windows in the workspace.

Arrange (arrangeStyle)

arrangeStyle: Specifies whether to cascade or tile the windows.


ActivePresentation.Windows.Arrange ppArrangeCascade

Count

Returns the number of objects in the specified collection.

If your Visual Studio solution includes the Microsoft.Office.Interop.PowerPoint reference, this property maps to the following types:


Dim lngCount As Long
lngCount = ActivePresentation.Windows.Count

Item

Returns a single DocumentWindow object from the specified DocumentWindows collection.

Item (Index)

Index: The index number of the single DocumentWindow object in the collection to be returned.


Dim dww As DocumentWindow
Set dww = ActivePresentation.Windows(Index:=1)