Select the columns you want auto-fitted and then press ALT+ocaHow do I make columns auto expand without having to double click the column?
It will be if you save the workbook.Is this permanent?
What columns do you want to have this auto-fit feature?I need it fixed. I have a template that I will use and for every change in the template some of the items have larger $'s then others.
Any insight into the code? How can we start that?
What columns do you want to have this auto-fit feature?
Give this event code a try...Columns D, G and J
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Col As Range
If Not Intersect(Target, Range("D:D,G:G,J:J")) Is Nothing Then
For Each Col In Intersect(Target, Range("D:D,G:G,J:J")).Columns
Col.EntireColumn.AutoFit
Next
End If
End Sub