Paragraphs.NoLineNumber property (Word)
True if line numbers are repressed for the specified paragraphs. Can be True, False, or wdUndefined. Read/write Long.
Syntax
expression. NoLineNumber
expression A variable that represents a 'Paragraphs' collection.
Remarks
Use the LineNumbering property of the PageSetup object to set line numbers.
Example
This example enables line numbering for the active document. The starting number is set to 1, and the numbering is continuous throughout all sections in the document. Line numbering is then repressed for the second paragraph.
With ActiveDocument.PageSetup.LineNumbering
.Active = True
.StartingNumber = 1
.CountBy = 1
.RestartMode = wdRestartContinuous
End With
ActiveDocument.Paragraphs(2).NoLineNumber = True
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for