LineNumbering Property

Applies To

PageSetup object.

Description

Returns or sets the LineNumbering object that represents the line numbers for the specified PageSetup object. Read/write.

Remarks

You must be in page layout view to see line numbering.

See Also

Active property, LineNumbering object, SeekView property.

Example

This example enables line numbering for the active document.

ActiveDocument.PageSetup.LineNumbering.Active = True
This example enables line numbering for a document named "My Document." The starting number is set to 1, every fifth line number is shown, and the numbering is continuous throughout all sections in the document.

set myDoc = Documents("MyDocument")
With myDoc.PageSetup.LineNumbering
    .Active = True
    .StartingNumber = 1
    .CountBy = 5
    .RestartMode = wdRestartContinuous
End With
This example sets the line numbering in the active document equal to the line numbering in MyDocument.

ActiveDocument.PageSetup.LineNumbering = Documents("MyDocument") _
    .PageSetup.LineNumbering