I have a macro that performs the following function:
The problem, row 1 has a header, and row 2 has actual data. Sometimes, the header ends up in the value for L2. I notice this happens especially when there are only two rows on the sheet.
Any idea why / how to combat this problem? It is impacting the results of my code. Thank you
Code:
Range("L2").Formula = "=VLOOKUP(C2,'152083'!B:C,2,FALSE)"Range("L2", "K" & Cells(Rows.Count, 1).End(xlUp).Row).FillDown
Range("L:L").Copy
Range("L:L").PasteSpecial xlPasteValues
Application.CutCopyMode = False
The problem, row 1 has a header, and row 2 has actual data. Sometimes, the header ends up in the value for L2. I notice this happens especially when there are only two rows on the sheet.
Any idea why / how to combat this problem? It is impacting the results of my code. Thank you