Copy data from one worksheet to another. "Run-time error' 1004"

A Rossi

New Member
Joined
Apr 6, 2016
Messages
13
Hi

I am trying to copy data from three columns and paste to another sheet in same workbook. Keep getting a "Run-time error' 1004"

Not sure why this is happening. Note: i am pasting into a table.

Thanks

Rick


Code:
Sub AmazonData()

With ActiveWorkbook
 Sheets("Amazon").Range("D2", Range("D" & Rows.Count).End(xlUp)).Copy Destination:=Sheets("SOURCE").Range("C" & Rows.Count).End(xlUp).Offset(1)
 Sheets("Amazon").Range("G2", Range("G" & Rows.Count).End(xlUp)).Copy Destination:=Sheets("SOURCE").Range("B" & Rows.Count).End(xlUp).Offset(1)
 Sheets("Amazon").Range("L2", Range("L" & Rows.Count).End(xlUp)).Copy Destination:=Sheets("SOURCE").Range("D" & Rows.Count).End(xlUp).Offset(1)
End With


End Sub
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You may need to qualify your range references like this:
Rich (BB code):
Sheets("Amazon").Range("D2", Sheets("Amazon").Range("D" & Rows.Count).End(xlUp)).Copy
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,029
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top