The CountOfLines property returns a Long value indicating the number of lines of code in a standard module or class module.
Setting
The CountOfLines property is available only by using Visual Basic and is read-only.
Remarks
Lines in a module are numbered beginning with 1.
The line number of the last line in a module is the value of the CountOfLines property.