This documentation is archived and is not being maintained.

Range.RowHeight Property 

Returns the height of all the rows in the range specified, measured in points.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in

Dim range1 As Range

Dim returnValue As Object
returnValue = range1.RowHeight

Dim sampleValue As Object
range1.RowHeight = sampleValue

object RowHeight {get; set;}
public System.Object get_RowHeight();
public void set_RowHeight(System.Object);
function get RowHeight() : Object;
function set RowHeight(Object);

This property returns Null if the rows in the specified range aren’t all the same height.

For a single row, the value of the Height property is equal to the value of the RowHeight property. However, you can also use the Height property to return the total height of a range of cells.

Other differences between RowHeight and Height include the following:

  • Height is read-only.

  • If you return the RowHeight property of several rows, you will either get the row height of each of the rows (if all the rows are the same height) or Null (if they’re different heights). If you return the Height property of several rows, you will get the total height of all the rows.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms