How do I show a "masterlist" of items from several sheet on one sheet?

I have five sheets in my Excel 2010 workbook.  One column is JOB NUMBER.  How do I have a column on a sixth sheet that pulls all job numbers from that column on all the five worksheets?

Thanks!
Kevin SmithAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

redmondbCommented:
ksmithscs,

Please see attached. The code is...
Option Explicit

Sub List_Job_Numbers()
Dim xRows     As Long
Dim xResponse As Long
Dim xLast_Row As Long
Dim xOutput   As Long
Dim xSummary  As Worksheet
Dim xSheet    As Variant

Set xSummary = Sheets("Summary")
xRows = xSummary.UsedRange.Cells(1, 1).Row + xSummary.UsedRange.Rows.Count - 1
If xRows > 1 Then
    xResponse = MsgBox("Data found in the Summary sheet (" & xRows & " rows)." & Chr(10) & "'OK' to delete them, 'Cancel' to quit.", vbOKCancel, "List Job Numbers")
    If xResponse = 2 Then
        MsgBox ("User chose to quit.")
        Exit Sub
    End If
    xSummary.Range("2:" & xRows).Delete
    xRows = 1
End If

Application.ScreenUpdating = False

    For Each xSheet In Array("Sheet1", "Sheet2", "Sheet3", "Sheet4", "Sheet5", "Sheet6")
        With Sheets(xSheet)
            xLast_Row = .UsedRange.Cells(1, 1).Row + .UsedRange.Rows.Count - 1
            If xLast_Row > 1 Then
                .Range("E2:E" & xLast_Row).Copy Destination:=xSummary.Range("A" & xRows + 1)
                xRows = xRows + xLast_Row - 1
            End If
        End With
    Next

Application.ScreenUpdating = True

MsgBox ("Run complete - " & xRows - 1 & " entries copied.")

End Sub

Open in new window

Regards,
Brian.Job-Number.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
redmondbCommented:
Thanks, ksmithscs.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.