Ah...good point. It's better to use R1C1 notation and refer to cells. Then you can use column and row numbers in your references, and refer to them using the cells method of range:
Sub UpdateReport()
Dim lngFirstRowToAdd As Long, lngLastRowToAdd As Long, lngLastReportRow As Long, lngLastColumnToAdd As Long
lngFirstRowToAdd = Sheets("rptNoTune").Range("A65536").End(xlUp).End(xlUp).Offset(1, 0).Row
lngLastRowToAdd = Sheets("rptNoTune").Range("A65536").End(xlUp).Row
lngLastColumnToAdd = Sheets("rptNoTune").Range("A10").End(xlToRight).Column
lngLastReportRow = Sheets("rptTune").Range("A65536").End(xlUp).Offset(1, 0).Row
Sheets("rptNoTune").Range(Cells(lngFirstRowToAdd, 1), Cells(lngLastRowToAdd, lngLastColumnToAdd)).Copy
Sheets("rptTune").Range("A" & lngLastReportRow).PasteSpecial
Application.CutCopyMode = False
End Sub
I added the variable lngLastColumnToAdd which will hold the column number, and this line of code was modified from:
Sheets("rptNoTune").Range("A" & lngFirstRowToAdd & ":K" & lngLastRowToAdd).Copy
To:
Sheets("rptNoTune").Range(Cells(lngFirstRowToAdd, 1), Cells(lngLastRowToAdd, lngLastColumnToAdd)).Copy
Bookmarks