Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created May 7, 2018 11:37
Show Gist options
  • Save ndthanh/f906d0cf998e5e8ff571690b32cf15ac to your computer and use it in GitHub Desktop.
Save ndthanh/f906d0cf998e5e8ff571690b32cf15ac to your computer and use it in GitHub Desktop.
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
Next
Next
MsgBox "Xong"
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment