答案 0 :(得分:0)
尝试类似的事情,
with worksheets("sheet1")
.range("a2:b2, a6:b6, a10:b10, a14:b14, a18:b18").copy _
destination:=.range("f2")
end with
或者,使用“数千行”,您可以创建一个带循环的联合。
With Worksheets("sheet1")
Set rng = .Range("a2:b2")
For rw = 6 To .Cells(Rows.Count, 1).End(xlUp).Row Step 4
Set rng = Union(rng, .Cells(rw, 1).Resize(1, 2))
Next rw
rng.Copy Destination:=.Range("f2")
End With
答案 1 :(得分:0)