Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sub SheetAscending()
For i = 1 To Application.Sheets.Count
For j = 1 To Application.Sheets.Count - 1
If UCase$(Application.Sheets(j).Name) > UCase$(Application.Sheets(j + 1).Name) Then
Sheets(j).Move after:=Sheets(j + 1)
End If
MsgBox "Xong"
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment