excel - Range("X65536").End(xlUp).Row is not working -
hi need 1 line in vba:
lastrow = wstarget.range("x65536").end(xlup).row msgbox lastrow
wstarget
worksheet working on, want know last row of data. looking @ sheet, last line should 9; however, keeps returning 1 me. doing wrong?
it's little bit longer type, perhaps range.find method work you:
lastrow = wstarget.columns("x").find("*", wstarget.range("x1"), xlvalues, searchdirection:=xlprevious).row msgbox lastrow
Comments
Post a Comment