not without code.....but here is the code
Select the columns then run. Obviously, if you are going to do it on 1 table all the time, the variables can be hardcoded
Sub MaxcolSize()
Widest = 0
Selection.EntireColumn.AutoFit
For i = 1 To Selection.Columns.Count
tWidth = Selection.Columns(i).ColumnWidth
If tWidth > Widest Then
Widest = tWidth
Else
End If
Next i
Selection.ColumnWidth = Widest
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.