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' collection.

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