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