Workbooks("Revenue allocation.xlsx").Worksheets("2010").Range("A4", Workbooks("Revenue allocation.xlsx").Worksheets("2010").Range("AM" & Rows.Count).End(xlUp)).Copy Workbooks("Summary.xlsm").Workdheets("Allocations").Range("A2715")
Range(Workbooks("Revenue allocation.xlsx").Worksheets("2010").Range("A4"), Workbooks("Revenue allocation.xlsx").Worksheets("2010").Range("AM" & Rows.Count).End(xlUp)).Copy Workbooks("Summary.xlsm").Sheets("Allocations").Range("A2715")