Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone provide VBA code to set row heights for a range of rows (say, rows
20-100) to the values in a particular column (say column A)? In other words, row height for row 1 equals value in cell A1; row height for row 2 equals value in cell A2, etc. Also, what limit does Excel impose on maximum row height? Any help would be appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub SetHeights()
Dim cell As Range For Each cell In Range("A1:A20") cell.EntireRow.RowHeight = cell.Value Next End Sub -- Regards, Tom Ogilvy "John" wrote in message ... Can anyone provide VBA code to set row heights for a range of rows (say, rows 20-100) to the values in a particular column (say column A)? In other words, row height for row 1 equals value in cell A1; row height for row 2 equals value in cell A2, etc. Also, what limit does Excel impose on maximum row height? Any help would be appreciated. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Tom.
"Tom Ogilvy" wrote: Sub SetHeights() Dim cell As Range For Each cell In Range("A1:A20") cell.EntireRow.RowHeight = cell.Value Next End Sub -- Regards, Tom Ogilvy "John" wrote in message ... Can anyone provide VBA code to set row heights for a range of rows (say, rows 20-100) to the values in a particular column (say column A)? In other words, row height for row 1 equals value in cell A1; row height for row 2 equals value in cell A2, etc. Also, what limit does Excel impose on maximum row height? Any help would be appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Row heights | Excel Discussion (Misc queries) | |||
How can cells with differing heights exist in the same row? | Excel Discussion (Misc queries) | |||
row heights | Excel Discussion (Misc queries) | |||
Excel: copy grid, widths & heights down page: heights wrong! why? | Excel Discussion (Misc queries) | |||
Row Heights | Excel Programming |