LineNumbering Object
TOC
Collapse the table of content
Expand the table of content

LineNumbering Object (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents line numbers in the left margin or to the left of each newspaper-style column.

Use the LineNumbering property to return the LineNumbering object. The following example applies line numbering to the text in the first section of the active document.

With ActiveDocument.Sections(1).PageSetup.LineNumbering 
 .Active = True 
 .CountBy = 5 
 .RestartMode = wdRestartPage 
End With

The following example applies line numbering to the pages in the current section.

Selection.PageSetup.LineNumbering.Active = True
Show:
© 2016 Microsoft