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)

See also

Windows Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.