DocumentWindows Object

PowerPoint Developer Reference

A collection of all the DocumentWindow objects that are currently open in Microsoft Office PowerPoint. This collection doesn't include open slide show windows, which are included in the SlideShowWindows collection.


Use the Windows property to return the DocumentWindows collection. The following example tiles the open document windows.

Visual Basic for Applications
  Windows.Arrange ppArrangeTiled

Use the NewWindow method to create a document window and add it to the DocumentWindows collection. The following example creates a new window for the active presentation.

Visual Basic for Applications

Use Windows(index), where index is the window index number, to return a single DocumentWindow object. The following example closes document window two.

Visual Basic for Applications

See Also