Forms collection

Description

A collection of Form objects that represents the forms in a Set or 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 Sets, the Batch.Forms 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.Forms

If Not myColl Is Nothing Then

    For Each Element In myColl

        Call MySpecialFunction(Element)

    Next Element

End If

 

Limitation on stepping through collections