Peppertaker
New Member
- Joined
- Mar 8, 2016
- Messages
- 23
Need help in sorting my tabs in Alpha Numerical order. I have the following tabs in my workbook... "All Info, Totals By District, Totals by VPN, District 1, District 2, etc up to District 13. When I use the code below it sorts tabs alphabetically, but it list the Districts in order of 1, 10, 11, 12, 13. Can someone please help alter this macro to sort the tabs so Districts 10, 11, 12, 13 actually come after the District 9 tab?
Sub Sortem()
Dim x As Long, y As Long
For x = 1 To Worksheets.Count
For y = x To Worksheets.Count
If UCase(Sheets
.Name) < UCase(Sheets(x).Name) Then
Sheets
.Move before:=Sheets(x)
End If
Next
Next
End Sub
Thanks.
Sub Sortem()
Dim x As Long, y As Long
For x = 1 To Worksheets.Count
For y = x To Worksheets.Count
If UCase(Sheets
Sheets
End If
Next
Next
End Sub
Thanks.