Created
May 7, 2018 11:39
-
-
Save ndthanh/dac7db2a9268941b55f3ba35b1c8aa7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub SheetsDescending() | |
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 | |
Application.Sheets(j).Move after:=Application.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