NewWindow Method Example

This example creates a new window with the contents of the active window (this activates the new window) and then switches back to the first window.

Set oldW = Application.ActiveWindow
Set newW = oldW.NewWindow
oldW.Activate