Index Property [Document, Window]

Index 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 1

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

Debug.Print Window.Index

Example 2

This script displays all the methods and properties in the Window object.

Used by: Document object, Window object