Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there a way to alphabetize worksheet names in a workbook without having to
manually move each one? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
alphabetize the names colum on the excel | New Users to Excel | |||
Can I use excel (or any program) to alphabetize names? | Excel Discussion (Misc queries) | |||
alphabetize names | Excel Discussion (Misc queries) | |||
How do I alphabetize sheet tab names? | Excel Discussion (Misc queries) | |||
Can excel alphabetize a list of names? | Excel Worksheet Functions |