Hey, i'm trying to run a macro with a vlookup in sheet 3. the reference table for the vlookup is in sheet 1. this macro will be run on a daily basis, with a new set of data in sheet 1 each day, hence the size of the table will change. currently the line of vba code is shown below:
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],'sheet 1'!R3C1:R7C3,2,0)"
the size of this table is from cell A3:C7, however this size will change. is it possible to edit the above line of code, so that it selects the table from:
range("A3").end(xlright).end(xldown).select
I am not sure how to convert from the R1C1 format into the A1 format. any help would be greatly appreciated.
Thank you
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-2],'sheet 1'!R3C1:R7C3,2,0)"
the size of this table is from cell A3:C7, however this size will change. is it possible to edit the above line of code, so that it selects the table from:
range("A3").end(xlright).end(xldown).select
I am not sure how to convert from the R1C1 format into the A1 format. any help would be greatly appreciated.
Thank you