CountOfDeclarationLines Property

Applies To

CodeModule object.

Description

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

See Also

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

Example

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

Debug.Print Application.VBE.CodePanes(2).CodeModule.CountOfDeclarationLines