Sets collection

Description

A collection of Set objects that represents the sets in a Batch.

Specific members can be returned from the collection using the Item method, while the entire collection can be iterated using the For Each...Next statement.

Properties

Count

Methods

Item

Remarks

Important: If you are processing Batches containing Forms, the Batch.Sets method returns NULL (nothing), and not a collection containing zero objects. Therefore, always check the result from this method. See the code below:

 

Set myColl = Application.Batch.Sets

If Not myColl Is Nothing Then

    For Each Element In myColl

        Call MySpecialFunction(Element)

    Next Element

End If

 

Limitation on stepping through collections