Previous Document Next Document

Object Model Reference : Classes : D : Document : Properties : Document.Index


Document.Index

Property Index As Long

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.