Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Sequencial Names On Worksheet Tabs

Hi All

I want to create a work book with 12 sheet tabs named from January to
December.
Is thee any way to name all 12 sheet tabs in one operation?


Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Sequencial Names On Worksheet Tabs

Hi,

Right click any sheet tab and paste this in and run it. Note ive included no
error trapping so if you don't have at least 12 sheets this fails

Sub name_Sheets()
For x = 1 To 12
Sheets(x).Name = MonthName(x)
Next
End Sub

Mike

"lehigh46" wrote:

Hi All

I want to create a work book with 12 sheet tabs named from January to
December.
Is thee any way to name all 12 sheet tabs in one operation?


Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Sequencial Names On Worksheet Tabs

Hi,

When you right-click the tab, choose View Code.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Mike H" wrote:

Hi,

Right click any sheet tab and paste this in and run it. Note ive included no
error trapping so if you don't have at least 12 sheets this fails

Sub name_Sheets()
For x = 1 To 12
Sheets(x).Name = MonthName(x)
Next
End Sub

Mike

"lehigh46" wrote:

Hi All

I want to create a work book with 12 sheet tabs named from January to
December.
Is thee any way to name all 12 sheet tabs in one operation?


Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Sequencial Names On Worksheet Tabs


Thanks Mike,
This works great.

Is there anything else that I could substitute for Month ie; Day?
I tried DayName(x) but that didn't work.
How abot years, starting with a predetermined year?
Or how about from a self created list like peoples names?

Thanks again for your help.








On Wed, 28 Jan 2009 14:13:02 -0800, Mike H
wrote:

Hi,

Right click any sheet tab and paste this in and run it. Note ive included no
error trapping so if you don't have at least 12 sheets this fails

Sub name_Sheets()
For x = 1 To 12
Sheets(x).Name = MonthName(x)
Next
End Sub

Mike

"lehigh46" wrote:

Hi All

I want to create a work book with 12 sheet tabs named from January to
December.
Is thee any way to name all 12 sheet tabs in one operation?


Thanks for your help.

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
Worksheet/chart tabs changed names! wgnewman Charts and Charting in Excel 16 February 24th 10 02:22 PM
How do I create a list (Word) of the names on Excel worksheet tabs PT[_2_] Excel Worksheet Functions 3 February 23rd 07 05:24 PM
How do I print worksheet tabs names from exel 2003 Plinius Excel Discussion (Misc queries) 3 February 4th 07 09:49 PM
Worksheet Tabs Names as Dates Pieman Excel Worksheet Functions 4 March 6th 06 11:54 PM
Sequencial file names Neville Excel Discussion (Misc queries) 1 February 14th 06 02:48 PM


All times are GMT +1. The time now is 11:58 AM.

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

About Us

"It's about Microsoft Excel"