I have this formula in VBA:
ActiveCell.FormulaR1C1 = "=IF(OR(A2=""ETG_C"",A2=""ETGC""),C2,""na"")"
when I look at the activecell it actually returns this formula:
=IF(OR('A2'="ETG_C",'A2'="ETGC"),$B:$B,"na")
how do I force it to adhere to the first formula?
ActiveCell.FormulaR1C1uses the other kind of cell addresses, where you name them row 1 col 1. UseActiveCell.Formula!