Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Sheet Names

Your choice

Sub NameWS_List()
'name sheets with list of unique names in A1:A20 on first sheet
On Error Resume Next
For i = 1 To Worksheets.Count
Sheets(i).Name = Sheets(1).Cells(i, 1).Value
Next i
End Sub

Sub NameWS_Month()
'name sheets as Month 1, Month 2 etc.
On Error Resume Next
For i = 1 To Worksheets.Count
Sheets(i).Name = "Month " & i
Next i
End Sub


Gord Dibben MS Excel MVP

On Thu, 14 Aug 2008 09:23:00 -0700, Accor
wrote:

Hi all

I have a spreadsheet with around 20 sheets; sheet1, sheet2, sheet3 etc.

Is there any shorter way to re-name them either from a list or let's say
call it. Month 1, Month 2, Month 3 without having to type one by one.

Thanks in advance




 
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
Cell names = sheet names Vince Excel Worksheet Functions 9 February 8th 08 03:59 PM
Add Names of First Sheet and Automatically Add to Second Sheet Jorge Excel Discussion (Misc queries) 1 October 12th 06 10:48 PM
Sheet Tab Names Bob G Excel Worksheet Functions 10 May 1st 05 07:50 PM
I want to print out the sheet tabs (sheet names) Sundus Excel Worksheet Functions 3 February 23rd 05 08:34 PM


All times are GMT +1. The time now is 01:53 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"