Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default AUTOMATICALLY ADJUST COLUMN WIDTHS TO CONTENT

I use Microsoft Office 2003. Is there a way to get columns to automatically
adjust to fit the content of the cell?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default AUTOMATICALLY ADJUST COLUMN WIDTHS TO CONTENT

Double click the separator between the column and the one to the right
or
Select all the columns and use Format | Columns | AutoAdjust

I know of no way to make Excel automatically widen a column to hold any
amount of test entered into it.
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"DebC" wrote in message
...
I use Microsoft Office 2003. Is there a way to get columns to automatically
adjust to fit the content of the cell?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default AUTOMATICALLY ADJUST COLUMN WIDTHS TO CONTENT

Thank you; that is sort of what I thought, but hoped someone would be able to
tell me differently! hehe Thank you so much.

"Bernard Liengme" wrote:

Double click the separator between the column and the one to the right
or
Select all the columns and use Format | Columns | AutoAdjust

I know of no way to make Excel automatically widen a column to hold any
amount of test entered into it.
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"DebC" wrote in message
...
I use Microsoft Office 2003. Is there a way to get columns to automatically
adjust to fit the content of the cell?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default AUTOMATICALLY ADJUST COLUMN WIDTHS TO CONTENT

DebC,

Right click the Sheet tab Select View Code Copy and paste the following:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim myRange As Range
Set myRange = Range("a1:m100")

' Adjust Range to Suit your needs.

If Union(Target, myRange).Address = myRange.Address Then
' ColumnReset Macro
' Reset Column WIdths
'

'
Cells.Select
Selection.Columns.AutoFit

End If

End Sub

This will the column's width in the range selected, after entering data and
moving to the next cell using TAB or ENTER. You will need to alter the range
to suit your needs.

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) <message rule
<<Previous Text Snipped to Save Bandwidth When Appropriate


"DebC" wrote in message
...
Thank you; that is sort of what I thought, but hoped someone would be able
to
tell me differently! hehe Thank you so much.

"Bernard Liengme" wrote:

Double click the separator between the column and the one to the right
or
Select all the columns and use Format | Columns | AutoAdjust

I know of no way to make Excel automatically widen a column to hold any
amount of test entered into it.
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"DebC" wrote in message
...
I use Microsoft Office 2003. Is there a way to get columns to
automatically
adjust to fit the content of the cell?






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
Automatically change column widths? Ross Excel Discussion (Misc queries) 2 July 20th 07 07:58 PM
Automatically adjust column widths stu_padassol Excel Discussion (Misc queries) 1 July 27th 06 08:13 AM
automatically adjust numbers in a column when data is deleted Robbie Excel Worksheet Functions 2 May 21st 05 01:57 AM
Column widths to adjust automatically? lambola Excel Discussion (Misc queries) 1 January 21st 05 12:35 AM
How do I adjust column widths only on selected cells? karla Excel Discussion (Misc queries) 2 December 27th 04 02:10 PM


All times are GMT +1. The time now is 10:01 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"