VB Code:
Dim colForms As Collection
Private Sub Form_Activate()
Dim f As Form
Dim f2 As Form
Dim i As Long
'setup objects to go into collection
Set f = New Form1
f.Tag = "abc"
Set f2 = New Form1
f2.Tag = "xyz"
'create new collection
Set colForms = New Collection
'add forms to collection
colForms.Add f
colForms.Add f2
'read data from objects in collection
For i = 1 To colForms.Count
MsgBox colForms(i).Tag
Next i
'remove objects from collection
For i = 1 To colForms.Count
colForms.Remove (1)
Next i
MsgBox "there are now " & colForms.Count & " items in colForms"
End Sub