how do I auto name worksheets in Excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi there

I want to auto name my worksheets in Excel. Eg: Name the first shet January,
nrext sheet February, then have Excel auto name the remaining ten sheets with
the remaining months of the year.

This is similar to the auto fill function where cells can be filled
automatically, but I cannot work out how to name worksheets this way.

Does anyone know if this can be done, and if so, how?

thanks

Kathryn
 
I don't think there is a way to have Excel do this as part of the standard
functionality. You could do it with a macro though:

Sub nmsht()
Dim i As Integer
On Error Resume Next
For i = 1 To 12
Sheets(i).Name = MonthName(i)
Next i
On Error GoTo 0
End Sub

Regards
Rowan
 
Hi

You can do it in some procedure, but likely during time you need to write
the one, you can rename sheets in a lot of workbooks manually. When I'm
wrong in this, then my next advice will be to create an empty worksheet with
12 renamed sheets (you also can enter all column headers and formulas,
format cells, etc.), save it with some name like MonthsTemplate.xls, and
whenever you need a new workbook, you open it and then save as with new
name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top