Hello,
I want to display row height in inches in a cell (the same value displayed when using page layout mode), and i want to do the same with column width.
I am using Windows 7 and office 2010.
I found this code:
but it displays values in characters for columns and points for rows.
Can anyone help me?
Thanks
I want to display row height in inches in a cell (the same value displayed when using page layout mode), and i want to do the same with column width.
I am using Windows 7 and office 2010.
I found this code:
Code:
<CODE>Function Width(MyRange As Range) As Double[INDENT]Application.Volatile
Width = MyRange.ColumnWidth[/INDENT]
End Function</CODE>
</PRE>
Code:
<CODE>Function height(MyRange As Range) As Double[INDENT]Application.Volatile
Height = MyRange.RowHeight[/INDENT]
End Function</CODE>
</PRE>
but it displays values in characters for columns and points for rows.
Can anyone help me?
Thanks