Hi,
I used this code to copy all the records from column A. But I need a code that will copy the records until the next row is null. Please help. Thanks in advance.
With Sheets("Sheet2")
.Range(.Range("A1"), .Range("A65536").End(xlUp)).Copy
End With
Sheets("Test").[A65536].End(xlUp)(2).PasteSpecial Paste:=xlValues
Example:
1 AA
2 BB
3 CC
4
5 DD
6 EE
7 FF
* copy 1-3
I used this code to copy all the records from column A. But I need a code that will copy the records until the next row is null. Please help. Thanks in advance.
With Sheets("Sheet2")
.Range(.Range("A1"), .Range("A65536").End(xlUp)).Copy
End With
Sheets("Test").[A65536].End(xlUp)(2).PasteSpecial Paste:=xlValues
Example:
1 AA
2 BB
3 CC
4
5 DD
6 EE
7 FF
* copy 1-3