I don\'t know the syntax for handling double quotation marks within a formula.
Here is my code:
ActiveCell.Formula = \"=IF($W9=\"A\",1,IF($W9=\"B\",2, I
You need to double quotes for them to appear correctly in the formula
So: ActiveCell.Formula = "=IF($W9=""A"",1,IF($W9=""B"",2, IF($W9=""C"",3,0))))"
ActiveCell.Formula = "=IF($W9=""A"",1,IF($W9=""B"",2, IF($W9=""C"",3,0))))"
should give you the following formula in the ActiveCell:
=IF($W9="A",1,IF($W9="B",2, IF($W9="C",3,0))))