LineNumbering.Active Property

Word Developer Reference

True if line numbering is active for the specified document, section, or sections. Read/write Long.

Syntax

expression.Active

expression   An expression that returns a LineNumbering object.

Example

This example activates line numbering for the first section in the selection.

Visual Basic for Applications
  Sub CountByFive()
    With Selection.Sections(1).PageSetup.LineNumbering
        .Active = True
        .CountBy = 5
        .StartingNumber = 1
    End With
End Sub

See Also