property Inbox.Count as Long
Gets the number of messages.

TypeDescription
Long A long expression that defines the count of messages in the Inbox object.

Use the Item property to access a message in the messages collection. The messages collection is zero based.  For instance, the following sample prints the subject for each message in the messages collection:

Dim i As Long
For i = 0 To ibx.Count - 1
    With ibx(i)
            Debug.Print .Subject
    End With
Next