Hi
I've got some data which I'd like to sort alphabetically in one column, then numerically in another column (after the alphabetical sort has been done). The numerical sort should be in descending order.
I've got this which sorts it alphabetically
But when I run this afterwards, it only sorts the data in that column, instead of the range. Does anyone know why, please?
I've got some data which I'd like to sort alphabetically in one column, then numerically in another column (after the alphabetical sort has been done). The numerical sort should be in descending order.
I've got this which sorts it alphabetically
Code:
Sub A()
With Sheet4
Range("d5", Range("d5").End(xlDown)).Select
Selection.Sort Key1:=.Range("d4"), Order1:=xlAscending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal
End With
End Sub
But when I run this afterwards, it only sorts the data in that column, instead of the range. Does anyone know why, please?
Code:
Sub Sort_A()
With Sheet4
Range("k5", Range("k5").End(xlDown)).Select
Selection.Sort Key1:=Range("k5"), Order1:=xlDescending, Header:=xlNo
End With
End Sub