Set an array to zero

  • Thread starter Thread starter T.Mad
  • Start date Start date
T

T.Mad

Hi all,
How can I set an array to zero without looping to every element? For example
in FORTRAN with a single assignment e.g. Array=0 you can do that. Is there a
similar way in vba?
Many thanks
 
Dim NumArray(10) As Integer ' Integer array.
Erase NumArray ' Each element set to 0.

If this post helps click Yes
 
Back
Top