Private Sub Workbook_AfterSave(ByVal Success As Boolean)
On Error Resume Next
Range("E1").Sort Key1:=Range("E2"), Order1:=xlAscending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
I'm currently using this code to sort reports based on the date of processing in column E. It works great, but I also have to do another sorting based on priority (High, Medium, Low) so that each day is also sorted with the highest priority at the top.
E.g.
Task one / High / 12-02-18
Task two / High / 13-02-18
Task three / Medium / 13-02-18
Task four / Low / 13-02-18
Task five / High / 14-02-18
I'm pretty new to VBA and would greatly appreciate help for this.