我的vba行查找器无法正常工作

时间:2015-11-22 06:21:30

标签: vba long-integer msgbox

这段代码有什么问题

Sub wahwah()


Dim lastrow As Long


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


End Sub

1 个答案:

答案 0 :(得分:0)

应该是     xlUp 但是你用     X1UP