irisqueiroz
Member
Hi!
I'd like to know how can I can write a code that for each "i", I have a value in the variable linha(i). For example, in the column 2 (ie, i=2), the first filled row (ret.Range(Cells(253, i)).End(xlUp).Row) is 10, so linha(2) = 10 ... column 3, first filled row is 5, then linha(3) = 5 ... and so on, till i = nAtivos + 1.
Next I want to compare which value in array "linha" is the smallest. Could anyone help me?
Thats, what I thought... but didn't work out!
For i = 2 To nAtivos + 1
linha(i) = ret.Range(Cells(253, i)).End(xlUp).Row
Next
Thanks!
I'd like to know how can I can write a code that for each "i", I have a value in the variable linha(i). For example, in the column 2 (ie, i=2), the first filled row (ret.Range(Cells(253, i)).End(xlUp).Row) is 10, so linha(2) = 10 ... column 3, first filled row is 5, then linha(3) = 5 ... and so on, till i = nAtivos + 1.
Next I want to compare which value in array "linha" is the smallest. Could anyone help me?
Thats, what I thought... but didn't work out!
For i = 2 To nAtivos + 1
linha(i) = ret.Range(Cells(253, i)).End(xlUp).Row
Next
Thanks!