Muokkaa

Jaa


Rows.SetHeight method (Word)

Sets the height of table rows.

Syntax

expression. SetHeight( _RowHeight_ , _HeightRule_ )

expression Required. A variable that represents a Rows object.

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.

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

Rows Collection 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.