naming sheets

  • Thread starter Thread starter James
  • Start date Start date
J

James

hi guys!
is there a way to rename multiple sheets in a workbook at the same time,
keeping them in sequential order? for example instead of sheet 1. sheet 2,
etc.
i could rename it my data1, my data 2...


TIA

James
 
Hi
you have to use VBA for this which cycles through your sheet names
 
James,

One way


Sub sheetnames()

Dim sh As Worksheet

For Each sh In Worksheets
sh.Name = "data" & sh.Index
Next sh

End Sub

this will change to data1,datat2 note that sheets will be renamed in
the order they are.


Cesar
hi guys!
is there a way to rename multiple sheets in a workbook at the same time,
keeping them in sequential order? for example instead of sheet 1. sheet 2,
etc.
i could rename it my data1, my data 2...


TIA

James
j
 

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