Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

ALPHABETIZE WORKSHEETS AUTOMATICALLY

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RSJAAG - 07 Feb 2008 18:34 GMT
I'VE CREATED A WORKBOOK WITH MANY WORKSHEETS. I'M WONDERING IF THERE'S A WAY
TO ALPHABETIZE THE SHEETS AUTOMATICALLY.  HELP!!! MY EMAIL IS
RSJAAG@COMCAST.NET
ryguy7272 - 07 Feb 2008 19:44 GMT
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--

Signature

RyGuy

> I'VE CREATED A WORKBOOK WITH MANY WORKSHEETS. I'M WONDERING IF THERE'S A WAY
> TO ALPHABETIZE THE SHEETS AUTOMATICALLY.  HELP!!! MY EMAIL IS
> RSJAAG@COMCAST.NET
RSJAAG - 07 Feb 2008 21:28 GMT
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

> This question gets asked every now and again:
> Sub ArrangeSheetsInOrder()
[quoted text clipped - 16 lines]
> > TO ALPHABETIZE THE SHEETS AUTOMATICALLY.  HELP!!! MY EMAIL IS
> > RSJAAG@COMCAST.NET
Gord Dibben - 07 Feb 2008 19:49 GMT
Please drop the all caps.

Hard on the ears and difficult to read.

See Chip Pearson's site for VBA code to sort worksheets.

http://www.cpearson.com/excel/sortws.aspx

Gord Dibben  MS Excel MVP

>I'VE CREATED A WORKBOOK WITH MANY WORKSHEETS. I'M WONDERING IF THERE'S A WAY
>TO ALPHABETIZE THE SHEETS AUTOMATICALLY.  HELP!!! MY EMAIL IS
>RSJAAG@COMCAST.NET
Conan Kelly - 07 Feb 2008 20:11 GMT
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...

rsjaagREMOVE@comcastREMOVE.netREMOVE
rsjaagNOSPAM@comcastNOSPAM.netNOSPAM
rsjaagBUCKETOFSPAM@comcastBUCKETOFSPAM.netBUCKETOFSPAM

HTH,

Conan

> I'VE CREATED A WORKBOOK WITH MANY WORKSHEETS. I'M WONDERING IF THERE'S A
> WAY
> TO ALPHABETIZE THE SHEETS AUTOMATICALLY.  HELP!!! MY EMAIL IS
> RSJAAG@COMCAST.NET
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.