I often find posts about how using the For Each-loop tends to be faster then using the For-loop.
But what if I need an incremental integer? Then which loop is faster?
I couldn't find it on Google so I thought I asked around here ;-)
I mean to use it with Arrays.
So when I need an incremental integer, which Loop is faster?
This one:
or this one:![]()
For x = 1 to ubound(myArray) 'Do something Next x
![]()
x = 1 For Each value in myArray 'Do something x = x + 1 Next value
Bookmarks