CookieMonster76
Board Regular
- Joined
- Apr 30, 2015
- Messages
- 201
Hi
I have this bit of code, but is there a way to combine it so it copies A1:C and P1:R at the same time - By doing it the way I am currently I am having difficulty in lining it up on the destination spreadsheet due to the fact that there are blanks in Col D in Sheet 3, so the previous last cells in Col A and Col D are not the same
Sheets("Sheet3").Select
With (Sheets ("Sheet2")
.Range("A1:C" & .Range("A" & .Rows.Count).End(xlUp).Row).Copy Destination:=Sheets("Sheet3").Range("A1048576").End(xlUp).Offset(1, 0)
.Range("P1:R" & .Range("A" & .Rows.Count).End(xlUp).Row).Copy
End with
Range("D1048576").End(xlUp).Offset(0, 1).PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Thanks
Paul
I have this bit of code, but is there a way to combine it so it copies A1:C and P1:R at the same time - By doing it the way I am currently I am having difficulty in lining it up on the destination spreadsheet due to the fact that there are blanks in Col D in Sheet 3, so the previous last cells in Col A and Col D are not the same
Sheets("Sheet3").Select
With (Sheets ("Sheet2")
.Range("A1:C" & .Range("A" & .Rows.Count).End(xlUp).Row).Copy Destination:=Sheets("Sheet3").Range("A1048576").End(xlUp).Offset(1, 0)
.Range("P1:R" & .Range("A" & .Rows.Count).End(xlUp).Row).Copy
End with
Range("D1048576").End(xlUp).Offset(0, 1).PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
Thanks
Paul