List of Sheetnames or TOC w/out VBA or ADD Ins

SuzyQPA2

Board Regular
Joined
Oct 28, 2004
Messages
90
Is it possible to create a list of sheetnames or a Toc on a summary sheet for formula use iwthout using VBA or Add-ins?"

Does anyone know?

I can create a list manually but the problem is that if they add a spreadsheet it doesn't get updated.

or a formula that says if a tab (sheetname) exists that is between this range show here. (its if there is 31 days vs 30 that causes the extra sheet)

My whole project is to take 9 monthly workbooks of daily activity (summarize them by month) and then show them on a consolidated summary sheet.

So what i was trying to do was build a summary sheet in each workbook. When they copy the old workbook to make the new voila - the summary sheet is there.
I can then link to the summary each month for my consolidated sheet.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Re: List of Sheetnames or TOC - Macro?

SuzyQPA2 said:
Is it possible to create a list of sheetnames or a Toc on a summary sheet for formula use iwthout using VBA or Add-ins?"

Does anyone know?

I can create a list manually but the problem is that if they add a spreadsheet it doesn't get updated.

or a formula that says if a tab (sheetname) exists that is between this range show here. (its if there is 31 days vs 30 that causes the extra sheet)

My whole project is to take 9 monthly workbooks of daily activity (summarize them by month) and then show them on a consolidated summary sheet.

So what i was trying to do was build a summary sheet in each workbook. When they copy the old workbook to make the new voila - the summary sheet is there.
I can then link to the summary each month for my consolidated sheet.

It seems the answer to this question is probably no.
I'm worried about add-in's and macros because other people update the file and send it back to me. Is it possible to use a Macro to create a TOC if your users don't have any add ins etc..
 
Upvote 0
Hi,

Maybe something like this as sheet code for the summary sheet:

Code:
Private Sub Worksheet_Activate()
Dim ws As Worksheet
Range("A2:A33").ClearContents
x = 2
For Each ws In ThisWorkbook.Sheets
Cells(x, 1) = ws.Name
x = x + 1
Next ws
End Sub
 
Upvote 0
Actually, it's not that hard. Go to Insert | Name, Define, and type in the first box

Sheets

and in the Refers To

=SUBSTITUTE(GET.WORKBOOK(1),"["&GET.WORKBOOK(16)&"]","")

click on 'Add' then on 'Close'

Now, in the summary sheet, select A2 for example, and put this formula

=IF(COUNTA(Sheets)>=ROW($A1),INDEX(Sheets, ROW($A1)), "")

and drag it down to say, A50 (Which gives you "room" for 49 sheets.

Now, you can use those cells with INDIRECT functions like

=INDIRECT("'" & A2 & "'!B2")

to return cell B2 of each sheet.

Does this work for you ?
 
Upvote 0
I've never used Macros or VBA before my prior job was less demanding and interesting. LOL

How do i put this in? I tried copying it in the code section of VB View for the summary sheet but nothing happened.....bet i left something out right?

:oops:
 
Upvote 0
Right click on the sheet tab for the summary sheet - view code.

Paste the code in the empty window that appears.

The code will run automaticly when you select the summary sheet.


Check out Juan Pablo's suggestion too. It's pretty cool and does not require code.
 
Upvote 0
Thanks! :biggrin:

I tried Juan's suggestion and it works great. (y)
This will be really helpful because even though we came up with a universal naming convention for the sheets some people enter in extra spaces o_O ;)
 
Upvote 0

Forum statistics

Threads
1,215,329
Messages
6,124,302
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top