RestartMode Property

Microsoft Word Visual Basic

Show All

RestartMode Property

       

Returns or sets the way line numbering runs — that is, whether it starts over at the beginning of a new page or section or runs continuously. Read/write WdNumberingRule.

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