Rows.HeightRule property (Word)

Returns or sets the rule for determining the height of the specified cells or rows. Read/write WdRowHeightRule.

Syntax

expression. HeightRule

expression Required. A variable that represents a Rows object.

Example

This example sets the height rule for the selected rows to automatically adjust to the tallest cell in the row.

If Selection.Information(wdWithInTable) = True Then 
 Selection.Rows.HeightRule = wdRowHeightAuto 
Else 
 MsgBox "The insertion point is not in a table." 
End If

See also

Rows Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.