A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

naming sheets



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2004, 06:45 PM
James
external usenet poster
 
Posts: n/a
Default 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  
Old June 15th, 2004, 06:50 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default 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  
Old June 15th, 2004, 07:01 PM
Cesar Zapata
external usenet poster
 
Posts: n/a
Default 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  
Old June 15th, 2004, 09:25 PM
James
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:32 AM.


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