I want to use the function SUM
of different cells from different columns, I used this syntax but it doesn't work, it returns always 0
:
Sub test(AC As String)
Sheets("Feuil4").Activate
Range("A1").Formula = "=SUM(Feuil2!AC10, -Feuil2!AC11)"
End Sub
Sub TEST()
Call test("B")
End Sub
I also tried: Range("A1").Formula = "=SUM(Feuil2!AC & 10, -Feuil2!AC & 11)"
it doesn't work either.