Windows.Add Method
Word Developer Reference |
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.
Visual Basic for Applications |
---|
|
This example opens a new window for MyDoc.doc.
Visual Basic for Applications |
---|
|
See Also