Hi Mike,
In VBA, the " character denotes a string so, to include a " in a string, you have to do it like this:
Code:
Range("AA3").Formula = "=IF(X3 ="""",IF(W3="""",N3+V3,N3+W3), N3+X3)"
(or you can use Chr 34 to represent them)
Code:
Range("A3").Formula = "=IF(X3 =" & Chr$(34) & Chr$(34) & ",IF(W3=" & Chr$(34) & Chr$(34) & ",N3+V3,N3+W3), N3+X3)"