+ Reply to Thread
Results 1 to 9 of 9

Sequentially number tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    10-03-2014
    Location
    Knoxville, Tn
    MS-Off Ver
    2003
    Posts
    4

    Sequentially number tabs

    Newbie....How do I sequentially number tabs 1-50 for example without having to manually rename each one?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Sequentially number tabs

    if the sheets are already created something like this should work

    you can change the 1 to 8 to anything you want....

    Sub testing()
    
        For x = 1 To 8
            Sheets(x).Name = x
        Next x
    
    End Sub
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    10-03-2014
    Location
    Knoxville, Tn
    MS-Off Ver
    2003
    Posts
    4

    Re: Sequentially number tabs

    Nice trick! Is there a way to exclude a first summary tab and renumber all the others following 1-50?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Sequentially number tabs

    Maybe:

    Sub khorner()
    Dim i As Long
    For i = 1 To 50
        Sheets(i).Name = i
    Next i
    End Sub

  5. #5
    Registered User
    Join Date
    10-03-2014
    Location
    Knoxville, Tn
    MS-Off Ver
    2003
    Posts
    4

    Re: Sequentially number tabs

    Your method works, too! This is great. However, is there a way to exclude a first summary tab and renumber the others that follow sequentially 1-50?

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Sequentially number tabs

    sure

    Sub testing()
    
        For x = 2 To 50
            Sheets(x).Name = x
        Next x
    
    End Sub

  7. #7
    Registered User
    Join Date
    10-03-2014
    Location
    Knoxville, Tn
    MS-Off Ver
    2003
    Posts
    4

    Re: Sequentially number tabs

    Awesome! Thanks a lot! This will solve my dilemma nicely!

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Sequentially number tabs

    If this has been completed to your satisfaction, please set the thread to Solved...If you feel we deserve an increase in our reputation, feel free to click on the star in the lower left of the thread. Remember, someday when you help somebody they may add to your rep points, and it could be us...just a thought...

  9. #9
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Sequentially number tabs

    thanks -- and I'm glad we could help....have a great day

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sequentially number occurences of a string in a list
    By Cerbera in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-06-2010, 12:43 PM
  2. naming multiple tabs sequentially
    By baneVader in forum Excel General
    Replies: 17
    Last Post: 05-30-2008, 08:41 AM
  3. Insert & Sequentially Number Column
    By dee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-30-2006, 05:50 AM
  4. [SOLVED] How do I sequentially number every third page of my workbook?
    By TNDeb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2005, 05:05 PM
  5. How do I number pages of worksheets sequentially?
    By jthecken in forum Excel General
    Replies: 0
    Last Post: 07-13-2005, 01:05 PM

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