Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Is there a way in Excel 2000 to rename the first two
worksheets and then use an autofill type feature to add more worksheets with a series of names? For example, name one worksheet January, the next one February, then insert new worksheets that would be automatically named the consecutive months. Bonnie |
#2
![]() |
|||
|
|||
![]()
Bonnie
No way to do it as you describe, but the code below, if copied to your personal.xls file will enable you to run the code after setting up the names on a worksheet and selecting them. (You've described how easy it is to set up the moths in cells, so you would just do that, highlight the cells and run the code). It will set up worksheets in the order of the data. (It has no error checking, so will bomb if you dupe a name or use illegal characters for example) Sub AddSheetsWithSelectedNames() Dim rCell As Range Dim wks As Worksheet For Each rCell In Selection Set wks = Worksheets.Add(After:=Worksheets(Worksheets.Count) ) wks.Name = rCell.Value Set wks = Nothing Next rCell End Sub -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England HIS "Bonnie" wrote in message ... Is there a way in Excel 2000 to rename the first two worksheets and then use an autofill type feature to add more worksheets with a series of names? For example, name one worksheet January, the next one February, then insert new worksheets that would be automatically named the consecutive months. Bonnie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I print a list of worksheet tab names in a workbook | Excel Worksheet Functions | |||
drop down menu containing worksheet names | Excel Worksheet Functions | |||
How to link Excel worksheet tab names to dates in each worksheet? | Excel Worksheet Functions | |||
Dynamic Worksheet Names | Excel Worksheet Functions | |||
Worksheet names | Excel Worksheet Functions |