I
Ian
I have the following to find the last cell used
myrow = range("sheet1!S65536").END(xlup).row + 1
I then need to search in cells based on the last cell found
or each cell in range(z3:zx") 'x = myrow above
if len(trim(cell.value)) < 1 then count = count + 1
next cell
range("a1").value = count
How can i pass the myrow value so i can make it my range for search
from z3 to z(myrow) ?
thanks,
myrow = range("sheet1!S65536").END(xlup).row + 1
I then need to search in cells based on the last cell found
or each cell in range(z3:zx") 'x = myrow above
if len(trim(cell.value)) < 1 then count = count + 1
next cell
range("a1").value = count
How can i pass the myrow value so i can make it my range for search
from z3 to z(myrow) ?
thanks,