WindowNumber Property Example
This example creates a new window of the active window and then displays the window number of the new window.
ActiveWindow.NewWindow MsgBox ActiveWindow.WindowNumber