ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Autofit issues (https://www.excelbanter.com/excel-programming/353290-autofit-issues.html)

John Keith[_2_]

Autofit issues
 
Not using Merged cells.
Using wordwrap
Not using Char(10) to force line breaks

I am setting the width of a column with code, decrementing the width until
the ActiveWindowZoom property returns a value 90%
I want to make sure that the 9 columns I want the user to see fit on their
screen.

I am making the decription column, which has the most possible number of
characters in it, smaller in width to allow all the columns to be seen on the
screen) Once that width is set, I am doing ActiveSheet.Rows.AutoFit and most
of the cells are adjusting the height properly; but some rows are are twice
the necessary height. I have noticed that Autofit does the same thing for
the same description text.

Is there a better way to size rows to prevent wasted space?
I am using Arial font which I'd prefer to keep using but changing to
TimesRoman seems to fix the problem.

Any ideas on how to fix this with the Arial font?

--
Regards,
John


All times are GMT +1. The time now is 06:18 AM.

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