你把各个人的表并到一个工作簿后,再导入附件中的汇总表(含代码),执行“生成汇总信息”就可以了。
也可以自己执行一下代码:
Sub 生成汇总数据()
Dim I As Long, R As Range, H As Long
H = 3
For I = 2 To Sheets.Count
Cells(H, 1) = Sheets(I).Cells(5, 2)
Cells(H, 2) = Sheets(I).Cells(5, 4)
Cells(H, 3) = Sheets(I).Cells(5, 6)
Cells(H, 4) = Sheets(I).Cells(6, 2)
Cells(H, 5) = Sheets(I).Cells(6, 4)
Cells(H, 6) = Sheets(I).Cells(6, 6)
Cells(H, 7) = Sheets(I).Cells(7, 2)
Cells(H, 8) = Sheets(I).Cells(7, 5)
Cells(H, 9) = Sheets(I).Cells(8, 2)
Cells(H, 10) = Sheets(I).Cells(9, 3)
Cells(H, 11) = Sheets(I).Cells(10, 2)
Cells(H, 12) = Sheets(I).Cells(10, 4)
Cells(H, 13) = Sheets(I).Cells(10, 6)
H = H + 1
Next I
End Sub |