ALPHABETIZE WORKSHEETS AUTOMATICALLY

R

ryguy7272

This question gets asked every now and again:
Sub ArrangeSheetsInOrder()
Dim iCount As Integer
Application.ScreenUpdating = False
iCount = Sheets.Count
For i = 1 To iCount - 1
For j = i + 1 To iCount
If Sheets(j).Name < Sheets(i).Name Then
Sheets(j).Move Before:=Sheets(i)
End If
Next j
Next i
End Sub


Regards,
Ryan--
 
C

Conan Kelly

RSJAAG,

One other thing, don't post your actual email address like you did.
Spammers and the like have "bots" that will scan newsgroups for email
addresses and then you will get hit with a bunch of spam.

disguise it like this...

RSJAAG AT COMCAST DOT NET

....or add words to it that need to be removed like this...

[email protected]
[email protected]
[email protected]

HTH,

Conan
 
R

RSJAAG

Thank you so much. I greatly appreciate your help! I'm learning as I go and
had an intro to macros last year. This helped. I was able to run this.
--rsjaag
 
Top