1、新建一个vba模块

3、调用此函数使用方法getEmptyRow("表名",列号) 即可返回空行数值(返回值为Long)使用举例有一个名为 invest的表(sheet),要获得第一列的末尾空行。在vba中写一个test()函数,调用上边函数来测试Function test() MsgBox getEmptyRow("invest", 1)End Function

时间:2024-10-21 04:26:38
1、新建一个vba模块
3、调用此函数使用方法getEmptyRow("表名",列号) 即可返回空行数值(返回值为Long)使用举例有一个名为 invest的表(sheet),要获得第一列的末尾空行。在vba中写一个test()函数,调用上边函数来测试Function test() MsgBox getEmptyRow("invest", 1)End Function