#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Worksheet names

I am creating a large workbook that requires I break down each week into a
seperate worksheet. Is there anyway I can set an auto naming feature to
label the worksheets for me or must I do it manually, one sheet at a time?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Worksheet names

Here's a short macro that names sheets based on a cell value. Using formulas,
you could adast this to suit:

Sub NameSheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Name = ws.Range("A1").Value
Next
End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Melissa Blakley" wrote:

I am creating a large workbook that requires I break down each week into a
seperate worksheet. Is there anyway I can set an auto naming feature to
label the worksheets for me or must I do it manually, one sheet at a time?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Worksheet names

Do you have existing sheets that need re-naming?

How many and what do you want for labels?

This macro will rename to Week1, Week2 etc.

Sub RenameTabs()
For I = 1 To Sheets.Count
Sheets(I).Name = "Week" & I
Next
End Sub

If you don't have the sheets do you want to copy one template sheet many
times and name each copy?

Post back with some details.


Gord Dibben MS Excel MVP

On Fri, 23 Oct 2009 11:25:01 -0700, Melissa Blakley <Melissa
wrote:

I am creating a large workbook that requires I break down each week into a
seperate worksheet. Is there anyway I can set an auto naming feature to
label the worksheets for me or must I do it manually, one sheet at a time?


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
using the Excel generic worksheet names instead of user-given names in code Paul Excel Discussion (Misc queries) 5 June 26th 09 08:44 PM
Linking Tab/worksheet names to a worksheet cell LinLin Excel Discussion (Misc queries) 3 March 9th 09 03:31 PM
MAKE A LIST OF NAMES FROM REPEATED NAMES IN THE SAME WORKSHEET r.kordahi Excel Discussion (Misc queries) 2 January 3rd 09 08:10 AM
Trying to list tab/worksheet names in a summary worksheet Mich Excel Discussion (Misc queries) 1 February 7th 08 02:07 AM
How to link Excel worksheet tab names to dates in each worksheet? Pat Excel Worksheet Functions 9 January 31st 05 07:51 AM


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