PC Review


Reply
Thread Tools Rate Thread

Create a list of pre-named tabs

 
 
darsh
Guest
Posts: n/a
 
      18th Mar 2010
Hi,

Wondering how to create a list of pre-existing tabs in a workbook. I have a
book that has appx 100 tabs and I want to create a list of those tabs on one
sheet.

Is there an easier way then doing this manually? The tab names keep changing
every month and I need to get a quick inventory of what's in the book.

Many Thanks,
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      18th Mar 2010
hi
Sub sheetnamesonSheet()
Dim r As Range
Dim rd As Range
Dim WS As Worksheet
Set r = Range("A2") 'change if needed. used sheet1 for demo
For Each WS In Worksheets
Set rd = r.Offset(1, 0)
r.Value = WS.Name
Set r = rd
Next WS
End Sub

goes in a standard module.

regards
FSt1


"darsh" wrote:

> Hi,
>
> Wondering how to create a list of pre-existing tabs in a workbook. I have a
> book that has appx 100 tabs and I want to create a list of those tabs on one
> sheet.
>
> Is there an easier way then doing this manually? The tab names keep changing
> every month and I need to get a quick inventory of what's in the book.
>
> Many Thanks,

 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      18th Mar 2010
Hi

This will write all sheet names to a sheet named 'Name Sheet', except
'Name Sheet'

Sub NameList()
Dim DestSh As Worksheet
Dim DestCell As Range

Set DestSh = Worksheets("Name Sheet") 'Change to suit
Set DestCell = DestSh.Range("A1")

Range(DestCell, DestCell.End(xlDown)).ClearContents

For Each sh In ThisWorkbook.Sheets
If sh.Name <> DestSh.Name Then
DestCell = sh.Name
Set DestCell = DestCell.Offset(1, 0)
End If
Next
End Sub

Regards,
Per

On 18 Mar., 01:10, darsh <da...@discussions.microsoft.com> wrote:
> Hi,
>
> Wondering how to create a list of pre-existing tabs in a workbook. I have a
> book that has appx 100 tabs and I want to create a list of those tabs on one
> sheet.
>
> Is there an easier way then doing this manually? The tab names keep changing
> every month and I need to get a quick inventory of what's in the book.
>
> Many Thanks,


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically Name Tabs from List on Worksheet Named Team =?Utf-8?B?Q2hlcmk=?= Microsoft Excel Misc 10 12th Apr 2008 03:34 AM
Create list of Named Ranges =?Utf-8?B?SmltIFRpYmJldHRz?= Microsoft Excel Worksheet Functions 4 15th Feb 2007 05:29 PM
Create tabs named after a group of cells? =?Utf-8?B?Qk0=?= Microsoft Excel Misc 3 26th Sep 2006 09:21 PM
Re: How can Excel create a list of tabs on a worksheet? Paul B Microsoft Excel Misc 0 14th Apr 2005 02:46 PM
Create Sheet Tabs from the List (URGENT) Murtaza Microsoft Excel Discussion 12 22nd Sep 2003 10:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:26 AM.