【发布时间】:2016-06-08 11:18:26
【问题描述】:
我必须将 Range("A22:A40") 从 Sheet1 复制到 Sheet3 和 Range("A22:A40") 从 表 2 到表 3。 Sheet3中的每个数据必须用两行分隔 这就是我所做的:
With Sheets("Sheet1").Range("A22:A40") 'A40 because i can have maximum 40 data
Application.Intersect(.SpecialCells(xlCellTypeVisible), _
.SpecialCells(xlCellTypeConstants)).Copy _
Destination:=Sheets("Sheet3").Range("A22:A40")
End With
With Sheets("Sheet2").Range("A22:A40") 'A40 because i can have maximum 40 data
Application.Intersect(.SpecialCells(xlCellTypeVisible), _
.SpecialCells(xlCellTypeConstants)).Copy _
Destination:=Sheets("Sheet3").Range("A22:A40")
End With
但 Sheets("Sheet3").Range("A22:A40") 仅包含 Sheets ("Sheet2").Range("A22:A40") 值。
我想在后面插入两行,然后将第二个副本复制到 Sheet3
如何将它们分隔 2 行?
【问题讨论】: