I am trying to copy data from one file to another. The range changes everytime I download the source file. I created a macro to copy from one workbook to another, but is not working.
Sub Copy_Method()
Dim lRow As Long
Dim lCol As Long
lRow = Workbooks("Active Dealers with State.xlsx").Worksheets("Active Dealers With State").Cells(Rows.Count, 1).End(xlUp).Row
lCol = Workbooks("Active Dealers with State.xlsx").Worksheets("Active Dealers With State").Cells(1, Columns.Count).End(xlToLeft).Column
Workbooks("Active Dealers with State.xlsx").Worksheets("Active Dealers With State").Range("A4", Cells(lRow, lCol).Select).Copy _
Workbooks("Working Sheet.xlsx").Worksheets("Active Dealer with State").Range("A4")
End Sub
What is the issue here? I want to copy the entire data from Active Dealers with State workbook to the Working sheet file.