Object Model Reference : Classes : D : Document : Properties : Document.Index |
Property Index As Long
Member of Document
The Index property returns the index value associated with a document in the Documents collection. The first document that was opened has the index value of 1.
The Index property returns a read-only value.
The following VBA example activates the first document that was opened if it is not the active document.
Sub Test() |
If ActiveDocument.Index <> 1 Then Documents(1).Activate |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.