Range("G2:G" & OutputLastRow).Formula = "=VLOOKUP(D2,[testbook.xlsm]pl!$D$2:$E$,2,0)"
.Value = .Value
.Range("G2:G" & OutputLastRow).Formula = "=VLOOKUP(D2,[testbook.xlsm]pl!$D$2:$E$,2,0)"
.Value = .Value
Hi Manuel,
With both workbooks open, in Report workbook cell F2, put this formula:
=VLOOKUP($B2,'[DATA.xlsx]Master Report'!$B$1:$H$118,COLUMN(F$1)-1,)
Copy to the right and down as needed. This is the easiest way to get the data. If you don't need/understand macros, I would recommend avoiding them. Much easier in this case to stick with just a formula.