Range("p6:p40").Formula = "=IF(C6="","",(P5+O6)-M6)"
I think VBA has a problem with "" meaning an empty cell.
Can someone tell me what I can substitute for "" so my formula will work in
VBA?
Range("p6:p40").Formula = "=IF(C6="""","""",(P5+O6)-M6)"
If this post helps click Yes
---------------
Jacob Skaria