|
- Sub rkd()
-
- Dim sht, i&, j&, k&
- If Sheet2.[b6] = "" Then Exit Sub
- j = Sheet3.Cells(Rows.Count, 1).End(3).Row + 1
- For i = 6 To 11
- If Sheet2.Range("b" & i) <> "" Then
- Sheet3.Cells(j, 1) = Sheet2.Cells(i, 2)
- Sheet3.Cells(j, 2) = Sheet2.Cells(i, 3)
- Sheet3.Cells(j, 3) = Sheet2.Cells(i, 4)
- Sheet3.Cells(j, 4) = Sheet2.Cells(i, 5)
- Sheet3.Cells(j, 5) = Sheet2.Cells(i, 6)
- Sheet3.Cells(j, 6) = Sheet2.Cells(i, 7)
- Sheet3.Cells(j, 7) = Sheet2.Cells(i, 8)
- Sheet3.Cells(j, 11) = Sheet2.Cells(4, 6)
- Sheet3.Cells(j, 12) = Sheet2.Cells(4, 11)
- Sheet3.Cells(j, 13) = Sheet2.Cells(14, 4)
- Sheet3.Cells(j, 14) = Sheet2.Cells(14, 10)
- j = j + 1
- End If
- Next
- Sheet2.Range("b6:G11").ClearContents
- Sheet2.[f4] = ""
- Sheet2.[k4] = ""
- Sheet2.[D14] = ""
- Sheet2.[I14] = ""
- End Sub
复制代码 |
|