Skip to content

Latest commit

 

History

History
69 lines (41 loc) · 1.55 KB

Word.Rows.AllowBreakAcrossPages.md

File metadata and controls

69 lines (41 loc) · 1.55 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Rows.AllowBreakAcrossPages property (Word)
vbawd10.chm155975683
vbawd10.chm155975683
Word.Rows.AllowBreakAcrossPages
6e5c0794-1dcc-9e70-7968-12a11adf6e56
06/08/2017
medium

Rows.AllowBreakAcrossPages property (Word)

True if the text in a table row or rows are allowed to split across a page break. Read/write Long.

Syntax

expression. AllowBreakAcrossPages

expression Required. A variable that represents a Rows object.

Remarks

This property can be True, False or wdUndefined (only some of the specified text is allowed to split).

Example

This example creates a new document with a 5x5 table and prevents the third row of the table from being split during pagination.

Dim docNew As Document 
Dim tableNew As Table 
 
Set docNew = Documents.Add 
Set tableNew = docNew.Tables.Add(Range:=Selection.Range, _ 
 NumRows:=5, NumColumns:=5) 
 
tableNew.Rows(3).AllowBreakAcrossPages = False

This example determines whether the rows in the current table can be split across pages. If the insertion point isn't in a table, a message box is displayed.

Dim lngAllowBreak as Long 
 
Selection.Collapse Direction:=wdCollapseStart 
If Selection.Tables.Count = 0 Then 
 MsgBox "The insertion point is not in a table." 
Else 
 lngAllowBreak = Selection.Rows.AllowBreakAcrossPages 
End If

See also

Rows Collection Object

[!includeSupport and feedback]