Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.Windows


Document.Windows

Property Windows As Windows

Description

Member of Document

The Windows property returns the Windows collection, which represents all document windows.

A document can have more than one document window at a time. This collection contains document windows belonging to one document only.

The Windows property returns a read-only value.

VBA example

The following VBA example looks through each open document and its windows and closes all of the windows, leaving open only one window per document.

Sub WindowsItem()
 Dim d As Document
 Dim w As Window
 For Each d In Documents
  For Each w In d.Windows
   If w.Index <> 1 Then w.Close
  Next w
 Next d
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.