vba 获取最后一行

mainWs.Cells(mainWs.Rows.Count, 1).End(xlUp).row

原文地址:https://www.cnblogs.com/grj001/p/12224884.html