View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.newusers
redsanders redsanders is offline
external usenet poster
 
Posts: 4
Default Column automatically adjusts width to fit text entries

Thanks Mike! It works! Just haven't had the time (and/or talent) to learn
VB Script. Calling my teacher to share this with him.

"Mike H" wrote:

Ignore the last one, this is better.

Public OldRng As Range

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not OldRng Is Nothing Then
OldRng.EntireColumn.AutoFit
End If
Set OldRng = Target
End Sub

"redsanders" wrote:

Not able to get an answer to this in General Questions Forum - so trying he
Is it possible to have Excel automatically extend the width of a column as
text is entered. That is, instead of the text spilling over into the
adjoining cell, the column automatically increases in width as characters
are added. Answer needed
for one of our teachers ASAP - college instructor claims it can be done - I
am unable to find it anywhere.