I'm trying to write an if statement using VBA that returns text, however I can't seem to figure out how to get it to work as I need to include apostrophes in the if statement. Below is the code that I'm working with:
Range("V2").Formula = "=IF(" & "Q2" & ">0," & "Indemnity" & "," & "Medical" & ")"
Any help would be greatly appreciated.
Thanks,
Peter
Bookmarks