Why am I getting that error? I get when the code tries to execute the bolded line.
TempR is the sheet showing on the screen when this code gets to that line... is that the issue, if so, how do I fix?
TempR is the sheet showing on the screen when this code gets to that line... is that the issue, if so, how do I fix?
Code:
TempR.Sheets(1).Range("E5", Range("E5").End(xlDown)).Copy
k = 1
Do Until ReportP.Sheets(1).Cells(k, 2) = ""
k = k + 1
Loop
ReportP.Sheets(1).Cells(k, 2).PasteSpecial xlPasteValues
TempR.Sheets(1).Range("H5", Range("H5").End(xlDown)).Copy
ReportP.Sheets(1).Cells(k, 3).PasteSpecial xlPasteValues
ReportP.Sheets(1).Cells(k, 4).Formula = "=today()"
w = 1
Do Until ReportP.Sheets(1).Cells(w, 2) = ""
w = w + 1
Loop
ReportP.Sheets(1).Cells(k, 4).Copy
[B]ReportP.Sheets(1).Range(Cells(k, 4), Cells(w - 1, 4)).PasteSpecial xlPasteValues[/B]
ReportP.Save