Select column & format
Posted by George on March 23, 2001 9:33 AM
Tried to record a macro to select a column and then align horizontal text within the column to "general". Resulting macro selects specific column (F) instead of selecting whatever column the highlighted cell at the time I run the macro resides in.
Can anyone help, please?
Selection.End(xlUp).Select
Columns("F:F").Select
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.ShrinkToFit = False
.MergeCells = False
End With
Selection.End(xlUp).Select
End Sub