I am trying to have my vba code select a range from work and paste the select in a different workbook. However I get an error 1004 on the selection of the book in which to paste on. Here is my code:
Sub selectionTest()
Worksheets("Deot").Range("A1:N250").Select
Worksheets("Deot").Range("A1:N250").Copy
Worksheets("Data").Range("A1").Select
Worksheets("Data").Range("A1").Paste
End Sub
I have several tabs in the file that I wish to copy into the tab Data, please help.