Share via


WindowNewWindow Method

Creates a new window.

Syntax

expression**.WindowNewWindow(Projects, View, AllProjects, ShowDialog)**

*expression   *     Optional. An expression that returns an Application object.

Projects    Optional String. The names of one or more projects, separated by the list separator character. The new window contains data from the projects you specify. The default is to create a copy of the active window.

View    Optional String. The name of an initial view for the new window. The default is equal to the value returned by the DefaultView property.

AllProjects    Optional Boolean. True if the new window contains data from all open projects. When True, AllProjects overrides Projects. The default value is False.

ShowDialog    Optional Boolean. True if the New Window dialog box is displayed so that a view or project can be selected. The default value is False.

Example

The following example creates a new window that combines the data from all open projects.

Sub NewCombineProjectsInNewWindow()
    WindowNewWindow AllProjects:=True
End Sub

Applies to | Application Object

See Also | WindowActivate Method | WindowArrangeAll Method | WindowHide Method | WindowMoreWindows Method | WindowNext Method | WindowPrev Method | WindowUnhide Method