Index Property [Document, Window]

 

The Index property returns the 1-based index of this window in the application Windows collection (Window) or Index returns this document's ordinal index in the Documents Collection (Document). Returns a long.

 

Syntax

object.Index

 

Example

This example demonstrates how to return the index number of a window.

 

Debug.Print Window.Index

 

Used by: Document object, Window object