ArrayList: Insert

Insert

Inserts a value into the list at the specified index.



 Public Sub Insert(
	  ByVal Index As Long,
	  ByRef Value As Variant )

Parameters

Index
[ByVal] Long. The index in which the value is to be inserted.
Value
[ByRef] Variant. The value to be inserted into the list.

Remarks

When a value is inserted, all items starting at the insertion point are moved out by one space. If capacity is reached, the list will be reallocated.

See Also

Class ArrayList Overview ArrayList Properties ArrayList Methods IndexOf InsertRange