How can I find last row that contains data in a specific column?

后端 未结 13 1763
南笙
南笙 2020-11-22 03:44

How can I find the last row that contains data in a specific column and on a specific sheet?

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 04:16

    Sub test()
        MsgBox Worksheets("sheet_name").Range("A65536").End(xlUp).Row
    End Sub
    

    This is looking for a value in column A because of "A65536".

提交回复
热议问题