Forum Discussion
work_in_progress
Sep 21, 2022Copper Contributor
VBA - VLookup in another sheet with fixed table_array
Hi guys, I do have a rather simple problem that probably just causes me trouble do to syntax errors. I want to VLOOKUP a cell in a row in a fixed table_array in another sheet. Later, my script ...
HansVogelaar
Sep 21, 2022MVP
You try to assign an R1C1 formula but P1:P100000 is A1 notation. Use
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-7],old!R1C15:R100000C16,2,FALSE)"
- work_in_progressSep 22, 2022Copper Contributor
HansVogelaar thanks. Awesome solution. Works perfectly.