Dear Excel experts,
I am currently strugling with this problem: I just need to insert a simple formula into an excel cell, but it does not seem to want to work.
The code:
The second line gets highlighted and I get Run-time error '1004' (Application-defined or object-defined error)![]()
Range("O6").offset(0, counter2).Select ActiveCell.FormulaR1C1 = "=IF(AND(R[-1]C<>0;RC[-1]>=R1C213);RC[-11];0)"
To me the formula seems correct so what could possibly be the problem?
Bookmarks