ArrayList: InsertRange

InsertRange

Inserts a collection of items into the list.



 Public Sub InsertRange(
	  ByVal Index As Long,
	  ByRef c As Variant )

Parameters

Index
[ByVal] Long. The index at which the items will be inserted.
c
[ByRef] Variant. The collection of items to be inserted into the list.

Remarks

When the items are inserted, the items starting at the index will be moved out a number of spaced equal to the number of items to be inserted. If the capacity is reached, the list will be reallocated.

The collection can be a VBA.Collection,ICollection object, or an Array.

See Also

Class ArrayList Overview ArrayList Properties ArrayList Methods Insert IObject_Equals