TwoLinesInOne Property
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Range.TwoLinesInOne Property

Office 2007
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.

Syntax

expression.TwoLinesInOne

expression   Required. A variable that represents a Range object.

Remarks

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.

Example

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

Visual Basic for Applications
Selection.Range.TwoLinesInOne = _
    wdTwoLinesInOneParentheses



Show:
© 2016 Microsoft