Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Macro: is it possible to find Row heights and Column widths of a worksheet?

Is there any way of finding the height of the ROWS from 1 to 50, and the width of the COLUMNS from A to Z in an Excel sheet without manually clicking and writing down the answer?

Thanks

Michael.

like image 413
RocketGoal Avatar asked Sep 23 '10 13:09

RocketGoal


1 Answers

To add on top of @Parkyprg

Range("A1:A50").Height      ' height of range
Range("A:Z").Width          ' width of range
Range("A1:A50").Rows.Count  ' number or rows in range
Range("A3").Height          ' height of A3 cell
Range("A3").Width           ' width of A3 cell
like image 136
Edward Leno Avatar answered Sep 30 '22 20:09

Edward Leno