Share via


TableStyle.AllowBreakAcrossPage Property

Word Developer Reference

Sets or returns a Long indicating whether lines in the rows of tables formatted with a specified style break across pages. Read/write.

Syntax

expression.AllowBreakAcrossPage

expression   A variable that represents a TableStyle object.

Remarks

True to break the lines in table rows across page breaks. False to keep the lines in a row of a table all on the same page. The default setting is True.

Example

This example formats rows in tables formatted with the "Table Grid" style to not break at page breaks.

Visual Basic for Applications
  Sub DontSplitRows()
    ActiveDocument.Styles("Table Grid") _
        .Table.AllowBreakAcrossPage = False
End Sub

See Also