我的 vba 行查找器不工作

My vba row finder not working

这段代码有什么问题

Sub wahwah()


Dim lastrow As Long


lastrow = Cells(Rows.count, 1).End(x1Up).Row
MsgBox _
"The last row is: " & lastrow


End Sub

应该是 向上 不管你用什么 x1Up