Rows.HeightRule Property (Word)

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


expression. HeightRule

expression Required. A variable that represents a 'Rows' collection.


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 
 MsgBox "The insertion point is not in a table." 
End If

See also

Rows Collection Object