Table of contents
Collapse the table of content
Expand the table of content

ParagraphFormat.KeepLinesTogether Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Sets or returns an MsoTriState that indicates whether all lines in the specified paragraph will remain in the same text box. Read/write.


expression. KeepLinesTogether

_expression_A variable that represents a ParagraphFormat object.

Return Value



This option ensures that there is not a text frame or column break between the lines of the specified paragraph. If the paragraphs are too large for the text frame or column, the first line will start at the top of the next text frame or column.

The default setting for this property is msoFalse.


This example sets the KeepLinesTogether property to msoTrue for the specified ParagraphFormat object.

Dim objParaForm As ParagraphFormat 
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _ 
objParaForm.KeepLinesTogether = msoTrue 
© 2018 Microsoft