Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mihaela
 
Posts: n/a
Default how can you re-number multiple sheets 'automatically'?

I have a large worksheet with a large number (100+) of sheets that I would
like to rename/renumber and don't want to do it one-by-one. I.e. change from
Sheet 1, Sheet 2, etc to just 1,2,3,....
  #2   Report Post  
Rowan
 
Posts: n/a
Default

If your sheets are named Sheet1, Sheet2 etc without the spaces shown in your
post then you can use a macro like this to change the names:

Sub ChangeNames()
Dim i As Integer
For i = 1 To Sheets.Count
If Left(Sheets(i).Name, 5) = "Sheet" Then
Sheets(i).Name = Mid(Sheets(i).Name, 6 _
, Len(Sheets(i).Name) - 5)
End If
Next i
End Sub

This will fail if you have a sheet name "Sheet1" and aonther sheet already
named "1", as it will try to rename "Sheet1" as "1".

Hope this helps
Rowan


"Mihaela" wrote:

I have a large worksheet with a large number (100+) of sheets that I would
like to rename/renumber and don't want to do it one-by-one. I.e. change from
Sheet 1, Sheet 2, etc to just 1,2,3,....

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
Name and number of sheets MB Excel Discussion (Misc queries) 1 March 18th 05 09:53 PM
Copying multiple sheets from one book 2 another and undertake spec Pank Mehta Excel Discussion (Misc queries) 14 March 16th 05 04:41 PM
Automatically number multiple sheets itguyintrainin Excel Discussion (Misc queries) 4 February 3rd 05 11:49 PM
Multiple sheets selected twa14 Excel Discussion (Misc queries) 2 December 21st 04 11:15 AM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM


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

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

About Us

"It's about Microsoft Excel"