I wish to enter a formula into a cell using VB.
The formula is:-
ActiveCell.Formula = "=If(MoDNonComp="No",0,1)"
When I run the code I get a "1004: Application-defined or Object-
defined error".
I think the problem is the inverted commas of the "No" part of the
formula.
How do I get around this problem ?