I'm having a problem changing the reference in a vlookup formula for each cycle of a For..Next loop.
Current code is:
ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC1,QryRecDetailsCalc!R2C1:R2C3,3,FALSE)),"""",VLOOKUP(RC1,QryRecDetailsCalc!R2C1:R2C3,3,FALSE))"
I want the 'QryRecDetailsCalc!R2C1:R2C3' reference to move down a line each time through the loop. ie R3C1:R3C3.
Any help much appreciated!!!
Current code is:
ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC1,QryRecDetailsCalc!R2C1:R2C3,3,FALSE)),"""",VLOOKUP(RC1,QryRecDetailsCalc!R2C1:R2C3,3,FALSE))"
I want the 'QryRecDetailsCalc!R2C1:R2C3' reference to move down a line each time through the loop. ie R3C1:R3C3.
Any help much appreciated!!!