RestartMode Property

Microsoft Word Visual Basic

WdNumberingRule can be one of these WdNumberingRule constants.
wdRestartContinuous
wdRestartPage
wdRestartSection

expression.RestartMode

expression    Required. An expression that returns a LineNumbering object.

Remarks

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

Example

This example enables line numbering for the active document. The starting number is set to 1, every tenth line number is shown, and the numbering starts over at the beginning of each section.

set myDoc = ActiveDocument
With myDoc.PageSetup.LineNumbering
    .Active = True
    .StartingNumber = 1
    .CountBy = 10
    .RestartMode = wdRestartSection
End With