Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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.