E
Excel-General
I need to get the lastRow dynamically because it can change. This is
not working but I don't know how to revise it. I want the last row in
column C.
lngLastRow = ws.Cells.Find(What:="*", After:=ws.Range("C1"), _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
This is in a macro and I set a watch on the variable and it was 1. It
looks like it is giving me the first column instead of the last
column.
tia,
not working but I don't know how to revise it. I want the last row in
column C.
lngLastRow = ws.Cells.Find(What:="*", After:=ws.Range("C1"), _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
This is in a macro and I set a watch on the variable and it was 1. It
looks like it is giving me the first column instead of the last
column.
tia,