Row.SetHeight Method (Word)

Sets the height of a table row.

Syntax

expression .SetHeight(RowHeight, HeightRule)

expression Required. A variable that represents a Row object.

Parameters

Name

Required/Optional

Data Type

Description

RowHeight

Required

Single

The height of the row, in points.

HeightRule

Required

WdRowHeightRule

The rule for determining the height of the specified rows.

Example

This example creates a table and then sets a fixed row height of 0.5 inch (36 points) for the first row.

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

See Also

Concepts

Row Object

Row Object Members