Hi All,
having issues in getting a macro to work the way I want it to.
my spread sheet has columns A-CO being used and rows 1-199. Row 1 is the column headings.
I have a macro that sorts column K alphabetically whoever in doing so it has reversed it so instead of starting at "A****" in column K it starts with "W****"
I have tried to swap the descending and ascending order around which works and the Column does in deed then starts at "A****" but it also starts in row 70 for some unknown reason.
any help would be gratefully received.
my macro is as follows:
Sub Macro1()
Range("A2:co199").Select
Selection.Sort Key1:=Range("k2:k199"), Order1:=xlDescending, Key2:=Range("k2:k199") _
, Order2:=xlAescending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom
End Sub
having issues in getting a macro to work the way I want it to.
my spread sheet has columns A-CO being used and rows 1-199. Row 1 is the column headings.
I have a macro that sorts column K alphabetically whoever in doing so it has reversed it so instead of starting at "A****" in column K it starts with "W****"
I have tried to swap the descending and ascending order around which works and the Column does in deed then starts at "A****" but it also starts in row 70 for some unknown reason.
any help would be gratefully received.
my macro is as follows:
Sub Macro1()
Range("A2:co199").Select
Selection.Sort Key1:=Range("k2:k199"), Order1:=xlDescending, Key2:=Range("k2:k199") _
, Order2:=xlAescending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom
End Sub
Last edited: