0
LastRow = Cells.Find("*", [A1], , , xlByRows, xlPrevious).Row

works very well for finding the last row in a worksheet. But how can I tweak the line above to find the last row of column C?

I've tried

LastRow = Range("C:C").Find("*", [A1], , , xlByRows, xlPrevious).Row

but I get the error message Incompatible types

Community
  • 1
  • 1
user1283776
  • 19,640
  • 49
  • 136
  • 276

1 Answers1

2

Because After is set to [A1]. This should be [C1]

LastRow = Range("C:C").Find("*", [C1], , , xlByRows, xlPrevious).Row

another way

lrow = Range("C" & Rows.Count).End(xlUp).Row
Sathish Kothandam
  • 1,530
  • 3
  • 16
  • 34