Returns the index of the referenced layer in the Layers collection for the Page only
Syntax:
PropertyGetIndex()AsLong
Remarks:
The Index property returns the index number of a layer within a Layers collection.
Examples:
The following VBA example adds a text string named Layer: and the index number of each layer to the lower-left corner of each layer in the active page.
Sub Test()
Dim l As Layer
For Each l In ActivePage.Layers
l.CreateArtisticText 0, 0, "Layer:" & l.Index, , , 10
Next l
End Sub