RestartMode Property
Applies To
LineNumbering object.
Description
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. Can be one of the following WdNumberingRule constants: wdRestartContinuous, wdRestartPage, or wdRestartSection. Read/write Long.
Remarks
You must be in page layout view to see line numbering.
See Also
LineNumbering property, SeekView property.
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