ArrayList: InsertRange

InsertRange

Inserts a collection of items into the list.



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

Parameters

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

Remarks

When the items are inserted, the items starting at Index will be moved out a number of spaces equal to the number of items to be inserted. If Capacity is reached, the list will be expanded.

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

See Also

Project CorLib Overview

Class ArrayList Overview