Count Property

Returns the number of items in the specified collection. Read-only Long.

Remarks

Discussions(1).Count returns the number, or count, of items in the first discussion in the Discussions collection. The Count property doesnΓÇÖt count recursively, however, and any discussions that are replies to the Discussion(1) object arenΓÇÖt included in the count.

Example

This example displays a message box containing the number, or count, of all discussions in the Discussions collection.

Dim dscDiscussions As Discussions
Set dscDiscussions = _
    OpenDiscussions("http://examples.microsoft.com")
dscDiscussions.Add "Supply room questions", _
    "Did anyone order staples?", 
MsgBox dscDiscussions.Count