Sub lineCount()
'统计行数
Dim wordCount, lineCount
Set myRange = Selection.Range
lineCount = myRange.ComputeStatistics(Statistic:=wdStatisticLines)
MsgBox lineCount
End Sub
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
Sub lineCount()
'统计行数
Dim wordCount, lineCount
Set myRange = Selection.Range
lineCount = myRange.ComputeStatistics(Statistic:=wdStatisticLines)
MsgBox lineCount
End Sub
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
word 宏VBA实现统计行
txttool.com 说一段 esp56物联 查询128 IP查询