本帖最后由 zhouxiao 于 2014-3-20 16:27 编辑
- Sub 汇总()
- Dim sht As Worksheet
- i = 1
- For Each sht In Sheets
- If sht.Name <> "汇总花名册" Then
- With Sheet1
- .Cells(i + 1, 1) = sht.Cells(3, 2) '姓名
- .Cells(i + 1, 2) = sht.Cells(3, 4) '性别
- .Cells(i + 1, 3) = sht.Cells(3, 6) '出生日期
- .Cells(i + 1, 4) = sht.Cells(3, 8) '民族
- .Cells(i + 1, 5) = sht.Cells(4, 2) '政治
- .Cells(i + 1, 6) = sht.Cells(4, 4) '参加工作时间
- .Cells(i + 1, 7) = sht.Cells(4, 7) '籍贯
- .Cells(i + 1, 8) = sht.Cells(5, 2) '工作单位及职级?职务
- .Cells(i + 1, 9) = sht.Cells(6, 2) '原始学历
- .Cells(i + 1, 10) = sht.Cells(6, 4) '毕业学校
- .Cells(i + 1, 11) = sht.Cells(6, 8) '毕业时间
- .Cells(i + 1, 12) = sht.Cells(7, 2) '现取得学历
- .Cells(i + 1, 13) = sht.Cells(7, 4) '毕业学校
- .Cells(i + 1, 14) = sht.Cells(7, 8) '毕业时间
- .Cells(i + 1, 15) = sht.Cells(8, 2) '身份证号码
- .Cells(i + 1, 16) = sht.Cells(9, 2) '联系方式
- .Cells(i + 1, 17) = sht.Cells(10, 2) '家庭住址
- .Cells(i + 1, 18) = sht.Cells(11, 2) '个人简历
- .Cells(i + 1, 19) = sht.Cells(12, 2) '家庭成员
- .Cells(i + 1, 20) = sht.Cells(13, 2) '备注
- End With
- i = i + 1
- End If
- Next
- End Sub
复制代码
|