I would like to insert a function looking like this, using VBA:
=IF(ISERROR(VLOOKUP(B12,AASD!A:B,2,0)),"Check #",VLOOKUP(B12,AASD!A:
B,2,0))
Code from VBA:
Sheets("Sheet1").Range("C12").Formula = "=IF(ISERROR(VLOOKUP(B12,AASD!A:B,2,0)),"Check AA#",VLOOKUP(B12,AASD!A:B,2,0))"
Issue is the "" quotes for inserting the string in the IF formula messes up the "" quotes in VBA.
Is there a clever work around for this?