ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adjust Row height to FONT (https://www.excelbanter.com/excel-programming/375485-adjust-row-height-font.html)

Joe[_47_]

Adjust Row height to FONT
 
I am building a spreadsheet thru code.
Is there a way to determine what the row height should be when I change a
FONT and FONT Size?

Thanks



NickHK[_3_]

Adjust Row height to FONT
 
Rows("4:4").EntireRow.AutoFit

NickHK

"Joe" hx.gbl...
I am building a spreadsheet thru code.
Is there a way to determine what the row height should be when I change a
FONT and FONT Size?

Thanks




Dave Peterson

Adjust Row height to FONT
 
Or even get all the rows at once...

with worksheets("sheet9999")
.rows.autofit
end with

Joe wrote:

I am building a spreadsheet thru code.
Is there a way to determine what the row height should be when I change a
FONT and FONT Size?

Thanks


--

Dave Peterson


All times are GMT +1. The time now is 01:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com