I need to clarify that the following is NOT the answer to the question above. However, for those who came here thinking about how to combine the collections (happened to me), the code below will add the contents of the collection (col2) to another (col1):
Sub addColToCol(col1 As Collection, col2 As Collection) Dim i As Integer For i = 1 To col2.Count col1.Add col2.Item(i) Next i End Sub
If you want to keep the contents of each collection, declare an additional collection.
Dim super_col As New Collection addColToCol super_col, col1 addColToCol super_col, col2
source share