Hi,
I have a VBA here that would copy data from one sheet and paste it to the next empty row in another sheet. However, i keep getting error message if there's only 1 row to be copied and pasted to the sheet. Here is my code:
Sheets("Bryan").Select
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Q4").Select
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
ActiveWindow.ScrollColumn = 1
Range("A53").Select
ActiveSheet.Paste
Range("H63").Select
Error:
Run-time error 1004
the information cannot be pasted because the copy area and the paste area are not the same size and shape
I have a VBA here that would copy data from one sheet and paste it to the next empty row in another sheet. However, i keep getting error message if there's only 1 row to be copied and pasted to the sheet. Here is my code:
Sheets("Bryan").Select
Range("A2").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Sheets("Q4").Select
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
ActiveWindow.ScrollColumn = 1
Range("A53").Select
ActiveSheet.Paste
Range("H63").Select
Error:
Run-time error 1004
the information cannot be pasted because the copy area and the paste area are not the same size and shape