Windows.Add Method (Word)
Returns a Window object that represents a new window of a document.
Syntax
expression .Add(Window)
expression Required. A variable that represents a Windows collection.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
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. |
Return Value
Window
Remarks
A colon (:) and a number appear in the window caption when more than one window is open for the document.
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)