Why not use For Each
? That way you don’t need to care what the LBound
and UBound
are.
Dim x, y, z
x = Array(1, 2, 3)
For Each y In x
z = DoSomethingWith(y)
Next
Why not use For Each
? That way you don’t need to care what the LBound
and UBound
are.
Dim x, y, z
x = Array(1, 2, 3)
For Each y In x
z = DoSomethingWith(y)
Next