Sub TriBis()
derliR = Sheets("Project").Range("R" & Rows.Count).End(xlUp).Offset(1, 0).Row
derliC = Sheets("Project").Range("C" & Rows.Count).End(xlUp).Offset(1, 0).Row
'Dim LignR As Row
ActiveWorkbook.Worksheets("Project").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Project").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Project").AutoFilter.Sort.SortFields.Add Key:= _
Range("R12:R" & derliR), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Project").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWorkbook.Worksheets("Project").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Project").AutoFilter.Sort.SortFields.Add Key:= _
Range("C12:C" & derliC), SortOn:=xlSortOnValues, Order:=xlAscending, CustomOrder _
:= _
"General,ProgM,BP,Other" _
, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Project").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub