I would like write a formula in a specific cells with a function.
I have written this, but it doesn't work and I don't understand why :
Function formulaCell(x, y)
ActiveSheet.Cells(x, y).FormulaR1C1 = "=IF(R[-1]C=0,"""",R[-1]C)"
End Function
Excel return #VALEUR
Thanks in advance