I have an array like this:
Dim aFirstArray() As Variant
How do I clear the entire array? What about a collection?
For deleting a dynamic array in VBA use the instruction Erase.
Erase
Example:
Dim ArrayDin() As Integer ReDim ArrayDin(10) 'Dynamic allocation Erase ArrayDin 'Erasing the Array
Hope this help!
ReDim aFirstArray(0)
This will resize the array to zero and erase all data.