I'm having a small problem with a for each loop iterating through an array of integers. I have something like this:
Dim arr(3) as Integer
Dim vari as variant
for each vari in arr
debug.print vari
next var
While it does return the value correctly I would also need a way to refer to the index number of a given item in the array(whether it is arr(1),(2) etc). How do I do this with a for each loop? I know how to do it using a for x = y to z loop, but I'd rather keep it as a for each loop.