Solved

Excel - Autonumber tabs

Posted on 2011-02-22
2
612 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

815 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now