Generate list from cell values in all sheets

lol.xls

Board Regular
Joined
Oct 5, 2009
Messages
174
I have about 1000 sheets (each unique sheet names...not Sheet#####). All sheets have a value in a merged cell B8:E8. How can I create a list in a blank summary sheet using a formula or VBA ?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try this:
Code:
Sub My_List_Of_Cells()
'Modified 12/19/2018 4:47:39 PM  EST
Application.ScreenUpdating = False
Dim i As Long
Dim x As Long
x = 1
For i = 1 To Sheets.Count
    If Sheets(i).Name <> "Summary" Then
        Sheets("Summary").Cells(x, 1).Value = Sheets(i).Cells(8, 2).Value
        x = x + 1
    End If
Next
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Code:
Sub forEachWs()
    Dim ws As Worksheet
    x = 1
    For Each ws In ActiveWorkbook.Worksheets
        Worksheets("Summary").Cells(x, 1).Value = ws.Range("A1").Value
        x = x + 1
    Next
End Sub

If needed add something like "If Not ws.Name = "Summary" Then..."
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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