Applies To
Window Object.
Description
Returns the window number. For example, a window entitled "BOOK1.XLS:2" has a window number of two. Most windows have a window number of one. Read-only.
Remarks
The window number is not the same as the window Index, which is the position of the window within the Windows collection.
See Also
Index 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