Add Method (Windows Collection)

Applies To

Windows collection object.

Description

Opens another document window for the same document in an open window.

Syntax

expression.Add(Window)

expression Required. An expression that returns a Windows object.

Window Optional Variant. The Window object you want to open another window for. If this argument is omitted, a new window is opened for the active document.

Remarks

A colon (:) and a number appear in the window caption when more than one window is open for the document.

See Also

NewWindow method, Windows collection object.

Example

This example opens a new window for the document that's displayed in the active window.

Windows.Add
This example opens a new window for MyDoc.doc.

Windows.Add Window:=Documents("MyDoc.doc").Windows(1)