J
JMay
I've assigned a Obj variable: Set oRng=C384 (there are 84 elements/items)
So I then have
Dim c as Range
'code
For each c in oRng
Next c
As I step thru the code I need to perform an action when (using IF)
c reaches element, say 32 -- How is this done using the For each method?
I know I could assign a counter i (and do the i = i + 1 inside), but is that
necessary using the For each.
Thanks in advance..
Jim
So I then have
Dim c as Range
'code
For each c in oRng
Next c
As I step thru the code I need to perform an action when (using IF)
c reaches element, say 32 -- How is this done using the For each method?
I know I could assign a counter i (and do the i = i + 1 inside), but is that
necessary using the For each.
Thanks in advance..
Jim