Range.TwoLinesInOne Property (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.

Returns or sets whether Microsoft Word sets two lines of text in one and specifies the characters that enclose the text, if any. Read/write WdTwoLinesInOneType.

expression .TwoLinesInOne

expression Required. A variable that represents a Range object.

Setting the TwoLinesInOne property to wdTwoLinesInOneNoBrackets sets two lines of text in one without enclosing the text in any characters. Setting the TwoLinesInOne property to wdTwoLinesInOneNone restores a line of combined text to two separate lines.

This example formats the current selection as two lines of text in one, enclosed in parentheses.

Selection.Range.TwoLinesInOne = _ 
 wdTwoLinesInOneParentheses

Concepts

Other resources

Show: