I am trying to copy a range from one workbook to another. However I get a run-time error that my subscript is out of range. This is the offending line:
Set wbDest = Workbooks("newFile.xlsx")
What am I missing?
Code
Dim wbDest As Workbook
Dim ws2 As Worksheet
Set myRange = Range("A1", Cells(LastRow, LastCol).Address)' Values retrieved from function
Set wbDest = Workbooks("newFile.xlsx")'both newFile and Thisworkbook stored on my desktop
Set ws2 = wbDest.Sheets("Sheet 1")
ws2.Range("A1") = wsJournals.myRange.Value