![]() |
Alphabetizing the tabs
How do I automatically get my tabs to alphabetize?
|
Alphabetizing the tabs
Sub SortALLSheets() 'sort sheets within a workbook in Excel 7 -- Bill Manville 'modified to sort all sheets instead of just worksheets Dim iSheet As Integer, iBefore As Integer For iSheet = 1 To ActiveWorkbook.Sheets.Count Sheets(iSheet).Visible = True For iBefore = 1 To iSheet - 1 If UCase(Sheets(iBefore).Name) UCase(Sheets(iSheet).Name) Then ActiveWorkbook.Sheets(iSheet).Move Befo=ActiveWorkbook.Sheets(iBefore) Exit For End If Next iBefore Next iSheet End Sub Insert this code into a module -- davesexcel ------------------------------------------------------------------------ davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708 View this thread: http://www.excelforum.com/showthread...hreadid=522321 |
Alphabetizing the tabs
There is no built-in way to do this. You need some VBA code. See
www.cpearson.com/excel/sortws.htm. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Chris Zrepskey" <Chris wrote in message ... How do I automatically get my tabs to alphabetize? |
All times are GMT +1. The time now is 11:00 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com