List all Sheets onto one sheet

mroseto

Board Regular
Joined
Jul 18, 2002
Messages
203
Hello all,

I would like to have a list on a seperate sheet that lists all the other sheets in the workbook.

So if I have sheets named (tabs ,apples, oranges, grapes)

I would have a list on tabs that says, apples, oranges, grapes.

Hope this makes sense, if not let me know and I will try to clarify.

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Thanks for the quick response.

I looked at that, but honestly I have no clue how to make it into something I need.

Maybe it would be easier if I reference a specific cell on each sheet. The name is in the same spot on each one, would this make more sense?

Thanks again.
 
Upvote 0
You could also try this:

Sub test()

Dim sht As Worksheet

For Each sht In ThisWorkbook.Sheets
ThisWorkbook.Sheets("Sheet1").Cells(sht.Index, 1) = sht.Name
Next sht

End Sub
 
Upvote 0
Sorry thought that was what I needed. I now need to reference certain cells on each corresponding sheet. How can that be done?

What I want is a list with
Item Sales Costs
Apples 5 3
Oranges 18 12
Grapes 20 15

This information is on the same place on every sheet.

Thanks again for your help
 
Upvote 0
This assumes Sheet1 is the summary sheet, and Sales info is in cell A1 of each sheet and Costs info is in cell A2.

Sub test()

Dim sht As Worksheet

For Each sht In ThisWorkbook.Sheets
If sht.Name = "Sheet1" Then
Else
ThisWorkbook.Sheets("Sheet1").Cells(sht.Index, 1) = sht.Name
ThisWorkbook.Sheets("Sheet1").Cells(sht.Index, 2) = ThisWorkbook.Sheets(sht.Index).Range("A1")
ThisWorkbook.Sheets("Sheet1").Cells(sht.Index, 3) = ThisWorkbook.Sheets(sht.Index).Range("A2")
End If

Next sht

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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