What is the best way to clear the contents of an array in VBA?
eg i have a constant 376 variables for upto 1 - 100 items spread across a number of days. the no. of items vary each day.
Say the code runs with 50 items for the first day then Datastor(49,376) is full of data, the following day if only 25 items are present then the remaining array after Datastor(25,376) contains data I don't need from the previous loop
Is there a quick way of clearing out the contents of the array stated below without a full cycle through setting everything to null?
Dim DataStor(100, 376) As Variant
eg i have a constant 376 variables for upto 1 - 100 items spread across a number of days. the no. of items vary each day.
Say the code runs with 50 items for the first day then Datastor(49,376) is full of data, the following day if only 25 items are present then the remaining array after Datastor(25,376) contains data I don't need from the previous loop
Is there a quick way of clearing out the contents of the array stated below without a full cycle through setting everything to null?
Dim DataStor(100, 376) As Variant