If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
naming sheets
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 |
#2
|
|||
|
|||
naming sheets
Hi
you have to use VBA for this which cycles through your sheet names -- Regards Frank Kabel Frankfurt, Germany James wrote: 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 |
#3
|
|||
|
|||
naming sheets
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 James wrote: 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 |
#4
|
|||
|
|||
naming sheets
THis is great!!
thanks! is there a way to put in a sequential dates? "Cesar Zapata" wrote in message ... 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 James wrote: 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 |
Thread Tools | |
Display Modes | |
|
|