Thread: Autofit issues
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John Keith[_2_] John Keith[_2_] is offline
external usenet poster
 
Posts: 175
Default 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