Sub SortData()
With ActiveSheet
.SortFields.Clear
.Range("[B][COLOR=#ff0000]A2[/COLOR]:[COLOR=#000080]C[/COLOR][/B]" & .Rows.Count).Sort Key1:=.Range("[COLOR=#ff0000]A2[/COLOR]"), Order1:=[COLOR=#006400]xlAscending[/COLOR], Header:=xlNo
End With
End Sub
Try this method
Amend column range to match your data
Amend A2 to the first cell containing a data (or blank)
If required amend Order1:=xlDescending
Code:Sub SortData() With ActiveSheet .SortFields.Clear .Range("[B][COLOR=#ff0000]A2[/COLOR]:[COLOR=#000080]C[/COLOR][/B]" & .Rows.Count).Sort Key1:=.Range("[COLOR=#ff0000]A2[/COLOR]"), Order1:=[COLOR=#006400]xlAscending[/COLOR], Header:=xlNo End With End Sub