Sub sort_sheets()
Dim i As Integer
Dim snames As Variant
snames = Array("ESL", "SVC", "JM WCH", "Hoppy")
For i = 1 To Sheets.Count
If IsNumeric(Application.Match(Sheets(i).Name, snames, 0)) Then
Sheets(i).Range("A1:O126").Sort key1:=Sheets(i).Range("B1:B126"), order1:=xlAscending, Header:=xlNo
End if
Next
End Sub
What I mean by "sheets" is all worksheets between and counting first and last- the first worksheet "ESL SVC JM" and last worksheet "WCH Hoppy"
Sub sort_sheets()
Dim i As Integer
Dim startTab As Long
Dim endTab As Long
startTab = Sheets("ESL SVC JM").Index
endTab = Sheets("WCH Hoppy").Index
For i = startTab To endTab
Sheets(i).Range("A1:O126").Sort key1:=Sheets(i).Range("B1:B126"), order1:=xlAscending, Header:=xlNo
Next
End Sub