CountOfLines Property

       

Returns a Long value indicating the number of newline sequences in the buffer, plus one if the last newline sequence is not immediately followed by an EOF marker.

Syntax

Property Get CountOfLines () As Long