私はあなたの式の文字列があるべきだと思う:
"=IF('Expected Project Summary'!$I$20<0, ""Warning - you have exceeded the total budget"",IF(VLOOKUP(""" & allocatedtospend.Cells(Rows.Count, 1).End(xlUp).Offset(-8, 0).Value & """,'Expected Project Summary'!$A$7:$I$16,7,FALSE)<0, ""Warning - you have exceeded the line budget"", """"))"
は、あなたのルックアップ値がテキストであると仮定します。それが数値の場合、あなたが必要となります
"=IF('Expected Project Summary'!$I$20<0, ""Warning - you have exceeded the total budget"",IF(VLOOKUP(" & allocatedtospend.Cells(Rows.Count, 1).End(xlUp).Offset(-8, 0).Value & ",'Expected Project Summary'!$A$7:$I$16,7,FALSE)<0, ""Warning - you have exceeded the line budget"", """"))"
をそれは単にセルアドレスが含まれるように、おそらく簡単だ、それはどちらかのために動作します:
"=IF('Expected Project Summary'!$I$20<0, ""Warning - you have exceeded the total budget"",IF(VLOOKUP(" & allocatedtospend.Cells(Rows.Count, 1).End(xlUp).Offset(-8, 0).Address & ",'Expected Project Summary'!$A$7:$I$16,7,FALSE)<0, ""Warning - you have exceeded the line budget"", """"))"