#1   Report Post  
Bonnie
 
Posts: n/a
Default Autofill Worksheet names

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   Report Post  
Nick Hodge
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print a list of worksheet tab names in a workbook Clif Excel Worksheet Functions 3 March 2nd 05 09:38 PM
drop down menu containing worksheet names J-Rad Excel Worksheet Functions 3 February 1st 05 03:25 AM
How to link Excel worksheet tab names to dates in each worksheet? Pat Excel Worksheet Functions 9 January 31st 05 07:51 AM
Dynamic Worksheet Names JClub Excel Worksheet Functions 1 January 10th 05 08:55 PM
Worksheet names JF Bouthillier Excel Worksheet Functions 3 November 6th 04 04:28 AM


All times are GMT +1. The time now is 08:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"