Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() works even better with the parentheses in place: Sub AutoHeight() Sheets("Sheet1").Range("AutoFit").Rows.AutoFit End Sub "RB Smissaert" wrote in message ... Sheets("Sheet1".Range("AutoFit").Rows.AutoFit Ah, yes, of course no need for the loop as I posted. RBS "JLGWhiz" wrote in message ... This might work better if the named range is defined. Sub AutoHeight() Sheets("Sheet1".Range("AutoFit").Rows.AutoFit End Sub "John" wrote in message ... This is a sub I made to loop through a range and autofit row height of each row: Sub AutoHeight() Dim c As Range For Each c In Sheet1.Range("AutoFit") Rows.AutoFit Next c End Sub The macro just keeps running and running. What;'s wrong with my sub? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ah, yes, infinite better!
RBS "JLGWhiz" wrote in message ... works even better with the parentheses in place: Sub AutoHeight() Sheets("Sheet1").Range("AutoFit").Rows.AutoFit End Sub "RB Smissaert" wrote in message ... Sheets("Sheet1".Range("AutoFit").Rows.AutoFit Ah, yes, of course no need for the loop as I posted. RBS "JLGWhiz" wrote in message ... This might work better if the named range is defined. Sub AutoHeight() Sheets("Sheet1".Range("AutoFit").Rows.AutoFit End Sub "John" wrote in message ... This is a sub I made to loop through a range and autofit row height of each row: Sub AutoHeight() Dim c As Range For Each c In Sheet1.Range("AutoFit") Rows.AutoFit Next c End Sub The macro just keeps running and running. What;'s wrong with my sub? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Set a minimum row height a the same time with autofit row height | New Users to Excel | |||
Autofit Row Height | Excel Discussion (Misc queries) | |||
Autofit row height | Excel Discussion (Misc queries) | |||
Need a row to autofit height after it's value changes | Excel Discussion (Misc queries) | |||
Autofit row height | Excel Programming |