Solved

Excel - Autonumber tabs

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

856 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