Rows.SetHeight Method

Word Developer Reference

Sets the height of table rows.

Syntax

expression.SetHeight(RowHeight, HeightRule)

expression   Required. A variable that represents a Rows collection.

Parameters

Name Required/Optional Data Type Description
RowHeight Required Single The height of the row or rows, in points.
HeightRule Required WdRowHeightRule The rule for determining the height of the specified rows.

Example

This example creates a table and then sets the row height to 0.5 inch (36 points) for all rows in the table.

Visual Basic for Applications
  Set newDoc = Documents.Add
Set aTable = _
    newDoc.Tables.Add(Range:=Selection.Range, NumRows:=3, _
    NumColumns:=3)
aTable.Rows.SetHeight RowHeight:=InchesToPoints(0.5), _
    HeightRule:=wdRowHeightExactly

See Also