+ Reply to Thread
Results 1 to 3 of 3

Alphabetizing the tabs

  1. #1
    Chris Zrepskey
    Guest

    Alphabetizing the tabs

    How do I automatically get my tabs to alphabetize?


  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    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 Before:=ActiveWorkbook.Sheets(iBefore)
    Exit For
    End If
    Next iBefore
    Next iSheet
    End Sub



    Insert this code into a module

  3. #3
    Chip Pearson
    Guest

    Re: 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 [email protected]> wrote
    in message
    news:[email protected]...
    > How do I automatically get my tabs to alphabetize?
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1