I have a loop that dims a 20,20 integer array. That loop will be executed ~1000 times.

At the end of each loop, would it be necessary for me to free the matrix from memory or such? With a recordset I have the habit of closing it and setting it to nothing to free up memory it has taken.

Or will "Dim MatriceMask() As Integer" (at the beginning of each loop) free up the old matrix?

Thanks for any info