Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For each ?? in array 1

Status
Not open for further replies.

jluft

Technical User
May 4, 2004
74
US
does anyone know the equivalent syntax for looping through the elements contained within an array?

for example:
for each cellvalue in range
blah blah blah
next cellvalue

how would this same form be applied to the array? thanks
 
For i = LBound(array) to UBound(array)
blah blah blah
Next

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
i see our styles are similar. thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top