dougmarkham
Active Member
- Joined
- Jul 19, 2016
- Messages
- 252
- Office Version
- 365
- Platform
- Windows
Hi Folks,
I have this copy/paste VBA which copies a range from one workbook into another workbook.
The Sheet names and Workbook names are all correct. Is there something wrong with this code that would cause a Run-time error 9?
Kind regards,
Doug.
I have this copy/paste VBA which copies a range from one workbook into another workbook.
Code:
Public Sub CopyPaste()
Workbooks("GenericGRNReport(Excel2010).xlsm").Sheets("GRN_Data").Range("$E$3:$F$5000").Copy Destination:=Workbooks("113LastNightStockManagementReportMACRO1.xltm").Sheets("Stock Management Lookup").Range("$A$3:$B$5000")
End Sub
The Sheet names and Workbook names are all correct. Is there something wrong with this code that would cause a Run-time error 9?
Kind regards,
Doug.