Here's the Macro used in the example posted before.
Private Sub Worksheet_Change(ByVal Target As Range)
Range("B6:E17").Select
Selection.Sort Key1:=Range("E6"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("H6:K17").Select
Selection.Sort Key1:=Range("K6"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("B21:E32").Select
Selection.Sort Key1:=Range("E21"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("H21:K32").Select
Selection.Sort Key1:=Range("K21"), Order1:=xlDescending, Header:=xlNo, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("C2").Select
End Sub
Paste this in to your Worksheet_Change _Event.
Hamadah,
I don't know your application.
If you can't make it work, post a sample of your worksheet.
modytrane
Bookmarks