Sub SortABC()
Dim i As Integer, j As Integer, x As Integer
x = Sheets.Count
For i = 1 To x - 1
For j = i + 1 To x
If Sheets(j).Name < Sheets(i).Name Then
Sheets(j).Move before:=Sheets(i)
End If
Next
Next
Sheets(1).Select
End Sub
Sub NameSheets()
Application.ScreenUpdating = False
For i = 1 to Worksheets.Count
Sheets(i).Range("A1") = "This is sheet number: " & i
Next i
Sheets(1).Select
Application.ScreenUpdating = True
End Sub