Summary excel sheet for multiple sheets

redbna

New Member
Joined
Jan 6, 2012
Messages
1
I have an limited knowledge of Excel but am able to get around pretty well with formulas and such. I'm creating an attendance workbook for each employee and would like to have a summary page that will list out the employee info including the types and total absences. I have 200 sheets that I've formatted identically but in creating the summary sheet it's very tedious to "fill down" the cells since it won't roll to the next sheet, only the next cell.
I've seen similar examples out there but haven't been able to make heads or tails of it so thought I'd provide my information and hopefully I'm not duplicating a situation.

Here's some screen shots of the sheets:
https://plus.google.com/photos/103975417699361850835/albums/5694639275509253473

Thank you,
Nathan
 

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.
Copy the following macro to a VBA Module and execute. It will go thru each of the 200+ sheets (ignoring the "Summary" and "Blank" sheets) and post the relative information to the "Summary" Sheet.

Code:
Sub CreateSummary()
    Dim wsSum As Worksheet
    Dim wsEmp As Worksheet
    Dim ws As Worksheet
 
    Dim SumRowNo As Long
 
    Set wsSum = ThisWorkbook.Worksheets("Summary")
 
    SumRowNo = 9
 
    wsSum.Range("A9:Z1000").ClearContents
    For Each ws In Worksheets
        Select Case ws.Name
            Case "Summary", "Blank"
                'Ignore
            Case Else
                wsSum.Cells(SumRowNo, "A") = ws.Range("D1")
                wsSum.Cells(SumRowNo, "B") = ws.Range("D2")
                wsSum.Cells(SumRowNo, "C") = ws.Range("X1")
                ws.Range("AG18:AR18").Copy Destination:=wsSum.Cells(SumRowNo, "D")
 
                SumRowNo = SumRowNo + 1
        End Select
        MsgBox "Complete"
    Next
 
 
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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