Row.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 'Row' object.

Example

This example creates a 3x3 table in a new document and then sets a minimum row height of 24 points for the second row.

Set newDoc = Documents.Add 
Set myTable = newDoc.Tables.Add(Range:=Selection.Range, _ 
 NumRows:=3, NumColumns:=3) 
With myTable.Rows(2) 
 .Height = 24 
 .HeightRule = wdRowHeightAtLeast 
End With

See also

Row 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.