Sub trier()
For Each f In ActiveWorkbook.Sheets
s = f.Name
If s <> "1" [B][COLOR=Red]And [/COLOR][/B]s <> "2" [B][COLOR=Red]And [/COLOR][/B]s <> "3" Then
[B][COLOR=Red]f.[/COLOR][/B]Range("A5", Selection.End(xlDown)).Sort Key1:=Range("A5"), Order1:=xlAscending, _
Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End If
Next f