#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Column Autofit

Is it possible to change the setting for column autofit, so that it
fits the column to the cell with the greatest amount of text, plus 1
or 2 spaces. I could use the indent to add a space, but I would
prefer that my info is centered. If the autofit were to fit the
column based on a cell with 10 characters. I would rather have it
adjust the column for 12 characters, in order to make things easier to
read. Is there a setting I can change somewhere in the options?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default Column Autofit

"mcolson" wrote in message
...
Is it possible to change the setting for column autofit, so that it
fits the column to the cell with the greatest amount of text, plus 1
or 2 spaces. I could use the indent to add a space, but I would
prefer that my info is centered. If the autofit were to fit the
column based on a cell with 10 characters. I would rather have it
adjust the column for 12 characters, in order to make things easier to
read. Is there a setting I can change somewhere in the options?


'Best fit' is affected by a number of things. The width of a column (even
containing the same sequence of characters) will be affected the characters
("w takes more space than a "i"), capitalisation, font and bold. It is not
good practice to pad out a cell with cells. It creates all sorts of
problems. You say you prefer info to be cantered so why not format the
column to cantered text and then just autofit it?

Bill Ridgeway
Computer Solutions


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Column Autofit

On Mar 6, 2:36 pm, "Bill Ridgeway" wrote:
"mcolson" wrote in message

...

Is it possible to change the setting for column autofit, so that it
fits the column to the cell with the greatest amount of text, plus 1
or 2 spaces. I could use the indent to add a space, but I would
prefer that my info is centered. If the autofit were to fit the
column based on a cell with 10 characters. I would rather have it
adjust the column for 12 characters, in order to make things easier to
read. Is there a setting I can change somewhere in the options?


'Best fit' is affected by a number of things. The width of a column (even
containing the same sequence of characters) will be affected the characters
("w takes more space than a "i"), capitalisation, font and bold. It is not
good practice to pad out a cell with cells. It creates all sorts of
problems. You say you prefer info to be cantered so why not format the
column to cantered text and then just autofit it?

Bill Ridgeway
Computer Solutions


Centering it and then just using auto fit, just seems to crunched at
times. I was able to use the following macro.
Dim i As Integer
Dim test
i = 1
Columns("A:z").Select
Selection.Columns.AutoFit
While i < 10
If (Cells(1, i)) < "" Then
Cells(1, i).Select
Selection.ColumnWidth = Selection.ColumnWidth + 2
End If
i = i + 1
Wend
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to autofit column widths brew2u New Users to Excel 1 October 31st 07 11:21 AM
format:column width: autofit selection dutch3dsmax Setting up and Configuration of Excel 1 March 28th 07 08:27 AM
autofit cells in column width Boethius1 Excel Discussion (Misc queries) 5 April 12th 06 02:51 AM
Autofit Row height or Column Width does not work Gunjani Excel Discussion (Misc queries) 2 October 11th 05 09:19 PM
autofit Column width- Ajit Ajit Munj Excel Discussion (Misc queries) 2 February 24th 05 05:51 PM


All times are GMT +1. The time now is 05:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"