CountOfLines Property

Applies To

CodeModule object.

Description

Returns a Long containing the number of lines of code in a code module. Read-only.

See Also

CountOfDeclarationLines property, CountOfVisibleLines property, DeleteLines method, InsertLines method, Lines method, ReplaceLine method.

Example

The following example uses the CountOfLines property to return the total number of lines in a particular code pane.

Application.VBE.CodePanes(2).CodeModule.CountOfLines