Greetings,
I would like to produce a subset of rows in a population using a loop. Is it possible to add elements to an array variable within a loop structure? Perhaps something like the code below...
Thanks!
I would like to produce a subset of rows in a population using a loop. Is it possible to add elements to an array variable within a loop structure? Perhaps something like the code below...
Code:
j = Cells(Rows.Count, "A").End.xlUp.Row
For I = j To 2 Step -1
If Cells(I, "A") > 1000 Then
'Add to an array variable Else
Next I
Thanks!