property Items.ItemByIndex (Index as Long) as HITEM

Retrieves the handle of the item given its index in Items collection..

TypeDescription
Index as Long A long expression that indicates the index of the item.
HITEM A long expression that indicates the item's handle.

Use the ItemByIndex to get the index of an item. Use the ItemPosition property to get the item's position. Use the ItemToIndex property to get the index of giving item.

The following statements are equivalents: Group.Items(0), Group.Items.ItemByIndex(0). 

The following sample displays the handle for each item into Items collection:

Dim i As Long, n As Long
With Group.Items
    n = .ItemCount
    For i = 0 To n - 1
        Debug.Print .ItemByIndex(i)
    Next
End With