|
看看行不行
Sub 合并()
Dim k, i, j
Worksheets("SPGL").Select
k = 1
Do While Range("a" & k) <> ""
k = k + 1
Loop
Range(Cells(2, 1), Cells(k - 1, 6)).Select
Selection.Copy
Worksheets("spgl&fert合并").Select
Range("a2").Select
ActiveSheet.Paste
Worksheets("FERT").Select
i = 1
Do While Range("a" & i) <> ""
i = i + 1
Loop
Range(Cells(2, 1), Cells(i - 1, 6)).Select
Selection.Copy
Worksheets("spgl&fert合并").Select
j = 1
Do While Range("a" & j) <> ""
j = j + 1
Loop
Range("a" & j).Select
ActiveSheet.Paste
End Sub
|
评分
-
1
查看全部评分
-
|