I have tried to copy Range A1:D7 from Excel_1 to Excel_2 It says Run-time error'9' subscript out of range. What's wrong with it? Both Excels are located at my onedrive.
Option Explicit
Sub copy()
Workbooks("Excel_1.xlsx").Worksheets("Sheet1").Range("A1:D7").copy _
Workbooks("Excel_2.xlsm").Worksheets("Sheet1").Range("A1")