Previous Document Next Document
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 code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.