Share via


LineNumbering.RestartMode Property (Word)

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.

Syntax

expression .RestartMode

expression Required. A variable that represents 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

See Also

Concepts

LineNumbering Object

LineNumbering Object Members