Solved

Excel - Autonumber tabs

Posted on 2011-02-22
2
656 Views
Last Modified: 2012-05-11
Hi,

Please offer a method to autonumber the worksheet tabs - and what is the maximum number of tabs per workbook.

Example, I am using Excel 2007, and would like to autonumber the worksheet tabs from 100 - 200.

Thank you for all your efforts.
0
Comment
Question by:tahirih
2 Comments
 
LVL 24

Accepted Solution

by:
broomee9 earned 500 total points
ID: 34952756
>>What is the maximum number of tabs per workbook.
Sheets in a workbook is limited by available memory (default is 3 sheets)
  http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP010073849.aspx

To rename the sheets, see that attached code.
Sub RenameSheets()
        
    Dim myCounter As Integer
    Dim i As Integer
    
    myCounter = 100
        
    For i = 1 To Worksheets.Count
        Sheets(i).Name = myCounter
        myCounter = myCounter + 1
    Next

End Sub

Open in new window

Book1.xls
0
 

Author Closing Comment

by:tahirih
ID: 34952972
Thank you.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question