ole_in.activesheet.Range("a65536").End(xlUp).Row出现异常

ole_in.activesheet.Range(a65536).End(xlUp).Row出现错误ole_in.activesheet.Range(a65536).End(xlUp

ole_in.activesheet.Range("a65536").End(xlUp).Row出现错误
ole_in.activesheet.Range("a65536").End(xlUp).Row出现错误


欲实现功能:得到 “A列最后一个单元格所占的行数”
错误:
Warning c0014:Undefined variable:xlup

谢谢各位了!

[解决办法]
Const long xlUp = -4162
[解决办法]
Excel ?
查一下VBA for Excel