Trying to create a formula with VBA that should be resolved in the cell. However, it's treating is as a literal. I developed this line by recording a macro. Here's the line.
I've tried changing the column to General and reactivating, but no luck.
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(RC[-1],SparesOriginsLookup,4,FALSE)),""HKN1"",VLOOKUP(RC[-1],SparesOriginsLookup,4,FALSE))"
I've tried changing the column to General and reactivating, but no luck.
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(RC[-1],SparesOriginsLookup,4,FALSE)),""HKN1"",VLOOKUP(RC[-1],SparesOriginsLookup,4,FALSE))"