Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Birichica
 
Posts: n/a
Default how do i sort excel worksheets by alphabetical order?

if I have 50 worksheets and I name them, how can i sort them in alphabetical
order?
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

check out
http://www.cpearson.com/excel/sortws.htm

for details

Cheers
JulieD

"Birichica" wrote in message
...
if I have 50 worksheets and I name them, how can i sort them in
alphabetical
order?



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You need macro for that


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

--

Regards,

Peo Sjoblom


"Birichica" wrote in message
...
if I have 50 worksheets and I name them, how can i sort them in

alphabetical
order?



  #4   Report Post  
Don S
 
Posts: n/a
Default

On Wed, 23 Feb 2005 06:49:07 -0800, Birichica
wrote:

if I have 50 worksheets and I name them, how can i sort them in alphabetical
order?

Go to ASAP-Utilities.com. It will do that exact thing and so much
more you'll need a towel to wipe the drool off your chin ... and it's
FREE!

Don S
  #5   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Birichica,

You need to use code.

From

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

Sorting Worksheets In Alphabetical Order
In some applications, it may be useful to have the worksheets in
alphabetical order. For example, if you have a worksheet for each employee
on a team and each employee has their own worksheet, you may want these
sheets in alphabetical order. You could do this manually, but if you have
more than a few sheets, it would be easier to automate the task. Excel
does not have a built in tool to do this, but you can use some fairly simple
VBA code accomplish this.
The following code will sort the sheets in the workbook, in alphabetical
order.

Sub SortWorksheets()

Dim N As Integer
Dim M As Integer
Dim FirstWSToSort As Integer
Dim LastWSToSort As Integer
Dim SortDescending As Boolean

SortDescending = False

If ActiveWindow.SelectedSheets.Count = 1 Then
FirstWSToSort = 1
LastWSToSort = Worksheets.Count
Else
With ActiveWindow.SelectedSheets
For N = 2 To .Count
If .Item(N - 1).Index < .Item(N).Index - 1 Then
MsgBox "You cannot sort non-adjacent sheets"
Exit Sub
End If
Next N
FirstWSToSort = .Item(1).Index
LastWSToSort = .Item(.Count).Index
End With
End If

For M = FirstWSToSort To LastWSToSort
For N = M To LastWSToSort
If SortDescending = True Then
If UCase(Worksheets(N).Name) UCase(Worksheets(M).Name) Then
Worksheets(N).Move Befo=Worksheets(M)
End If
Else
If UCase(Worksheets(N).Name) < UCase(Worksheets(M).Name) Then
Worksheets(N).Move Befo=Worksheets(M)
End If
End If
Next N
Next M

End Sub


HTH,
Bernie
MS Excel MVP

"Birichica" wrote in message
...
if I have 50 worksheets and I name them, how can i sort them in

alphabetical
order?



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
How to send Excel 2000 worksheets to Excel 2003? SecretarybyBarry Excel Discussion (Misc queries) 2 February 21st 05 06:28 PM
Excel - printing multiple worksheets on one page BGA Excel Discussion (Misc queries) 1 February 18th 05 03:05 PM
PASTE SUBTOTALS IN EXCEL TO ANOTHER SHEET TO DO ANOTHER SORT MIKE Excel Discussion (Misc queries) 1 January 27th 05 03:40 PM
In Excel 2003 SP1, "sort" on the Data drop-down menu is grayed ou. wdking Excel Worksheet Functions 0 January 18th 05 04:43 PM
How do I sort in Excel? Val Excel Worksheet Functions 1 December 9th 04 06:56 PM


All times are GMT +1. The time now is 04:41 AM.

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"