I'd like to use a for each loop to step through the elements of a single-dimensional array. I know I can accomplish this using the Ubound function, because I've done it this way for years.
But I've always wanted to be able to structure it something like this, but I just don't know the right syntax:
Dim aSingle(10) as string
Dim myString$
... array loaded with strings, then:
For each myString$ in aSingle.???
...
Next myString$
So would anything work in place of the 3 question marks (???) to make this code work? Thanks for looking.
But I've always wanted to be able to structure it something like this, but I just don't know the right syntax:
Dim aSingle(10) as string
Dim myString$
... array loaded with strings, then:
For each myString$ in aSingle.???
...
Next myString$
So would anything work in place of the 3 question marks (???) to make this code work? Thanks for looking.