constant indicating how Microsoft Word marks the line and paragraph breaks in documents saved as text files. Read/write.
| WdLineEndingType can be one of these WdLineEndingType constants. |
| wdCRLF |
| wdCROnly |
| wdLFCR Default |
| wdLFOnly |
| wdLSPS |
expression.TextLineEnding
expression Required. An expression that returns a Document object.
Example
This example sets the active document to enter a carriage return for line and paragraph breaks when it is saved as a text file.
Sub LineEndings()
ActiveDocument.TextLineEnding = wdCROnly
End Sub