Hello,
I searched the forums and got many of my answers but there is one that is eluding me. I want to be able to run a macro that will ignore the first 10 sheets and sort the remaining sheets alphabetically.
This works for sorting but it sorts all the sheets. How do I run it only on sheets after the 10th?
Thank you very much.
I searched the forums and got many of my answers but there is one that is eluding me. I want to be able to run a macro that will ignore the first 10 sheets and sort the remaining sheets alphabetically.
This works for sorting but it sorts all the sheets. How do I run it only on sheets after the 10th?
VBA Code:
Sub SortWorksheetsTabs()
Application.ScreenUpdating = False
Dim ShCount As Integer, i As Integer, j As Integer
ShCount = Sheets.Count
For i = 1 To ShCount - 1
For j = i + 1 To ShCount
If UCase(Sheets(j).Name) < UCase(Sheets(i).Name) Then
Sheets(j).Move before:=Sheets(i)
End If
Next j
Next i
Application.ScreenUpdating = True
End Sub
Thank you very much.