Let's say I have a master collection that I want to add other collections to. I have some optional functions that return a collection and I want to append that to my existing collection. Is there a command to do that like the ".AddRange" in VB.NET ?
VBA CODE EXAMPLE:
Public Sub main()
Dim masterCollection As Collection
Do While addingThings
If addManyThings Then
masterCollection.AddRange functionReturnsCollection
Else
masterCollection.Add aThing
End If
Loop
End Sub
Private Function functionReturnsCollection() As Collection
End Function