2015-11-23 27 views
0

我想通過VBA添加一個公式到單元格,但只是得到運行時異常1004沒有進一步的信息。通過VBA添加公式通過運行時異常

Cells(4, 3).Formula = "=IF('Mustermann, Max'!C13="""";"""";""impacting team targets"")" 

我的配方有什麼問題嗎?

回答

1

需要使用逗號代替Semikolon。

Cells(4, 3).Formula = "=IF('Mustermann, Max'!C13="""","""",""impacting team targets"")"