Expected End of Statement
问题 Ok, I have used a formula that was suggested that works well, should work without an issue but now I am getting this error: Expected End of Statement Here is the formula Range("B4").FormulaR1C1 = "=IF(RC[-1]="T",VLOOKUP(RC[7],treatlookup,11,FALSE),VLOOKUP(RC[7],itemlookup,22,FALSE))" Not sure what is going on, why it is happening. Any suggestions. Thanks, 回答1: Escape the embedded double-quotes ( "T" ) by doubling them ( ""T"" ): Range("B4").FormulaR1C1 = "=IF(RC[-1]=""T"",VLOOKUP(RC[7]