最佳答案:1.VBA ROWS函数的使用,ROWS为查找返回单元格行数函数。2.实例:Sub test()Dim a, b As Integera = ActiveSheet.Cells(Rows.Count,