Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default alphabetize worksheet names

Is there a way to alphabetize worksheet names in a workbook without having to
manually move each one?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default alphabetize worksheet names

This would require using VBA (which is programming)...

--
Wag more, bark less


"Eve Z." wrote:

Is there a way to alphabetize worksheet names in a workbook without having to
manually move each one?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 420
Default alphabetize worksheet names

Chip Pearson and David McRitchie share code to sort sheets:

Chip Pearson's:
http://www.cpearson.com/excel/sortws.htm

David McRitchie's:
http://www.mvps.org/dmcritchie/excel...#sortallsheets

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)


Eve Z. wrote:

Is there a way to alphabetize worksheet names in a workbook without having to
manually move each one?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default alphabetize worksheet names

Hi Eve

As Brad rightly says, this would require you to write a VBA sub procedure.
If you have a copy of John Walkenbach's excellent book "Excel 2002 Power
Programming with VBA" John actually uses this very subject as an example of
how to plan and build a VBA sub procedure. It starts on page 241 of his
book, and the finished procedure is listed on pages 253 & 254.

Regards
John WEC

"Eve Z." wrote:

Is there a way to alphabetize worksheet names in a workbook without having to
manually move each one?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default alphabetize worksheet names

try this

Sub Sortem()
For x = 1 To Worksheets.Count
For y = x To Worksheets.Count
If UCase(Sheets(y).Name) < UCase(Sheets(x).Name) Then
Sheets(y).Move Befo=Sheets(x)
End If
Next
Next
End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Eve Z." wrote:

Is there a way to alphabetize worksheet names in a workbook without having to
manually move each one?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
alphabetize the names colum on the excel lee New Users to Excel 1 June 1st 07 05:07 PM
Can I use excel (or any program) to alphabetize names? Chris Excel Discussion (Misc queries) 2 September 6th 06 02:06 AM
alphabetize names brendar Excel Discussion (Misc queries) 3 July 13th 06 12:24 PM
How do I alphabetize sheet tab names? R. Dearing Excel Discussion (Misc queries) 1 June 2nd 06 02:00 AM
Can excel alphabetize a list of names? Mary P. Excel Worksheet Functions 1 April 25th 06 04:30 AM


All times are GMT +1. The time now is 01:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"