I have a range of data in a workbook that I would like to copy to the active workbook. The code looks simple, but I am getting a subscript out of range error when I run the code. What am I doing wrong?
Source = "C:\Data\Demographics.xlsx" Destination = "C:\Data\Demographic_Import_2022_04_21.xlsm"
Workbooks(Source).Worksheets("Demographics").Range("B10:j39").Copy _
Workbooks(Destination).Worksheets("Sheet1").Range("B10")