Looping
For simple 1-dimensional arrays, the For-Each-Next tends to be faster than the For-Next.
For - Next
You can iterate through the elements of an array using a For - Next loop.
For Each - Next
You can iterate through the elements of an array using a For Each - Next loop.
The data type of vItem must be Variant.
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext