?
Solved

Excel - Autonumber tabs

Posted on 2011-02-22
2
Medium Priority
?
763 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
broomee9 earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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…

764 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