Macro:
nSheet.getCellByPosition(4, r ).Formula = “=SOM.ALS(Totalen.$B$1:Totalen.$B$567;D” + (r + 1) + “;Totalen.$A$1:Totalen.$A$567)”
If I set the formula above in my macro then the cell displays “#NAAM?” (Dutch Language, probably “#NAME?” in english I think)
But when I go to the cell and edit it without changing the formula then it executes it correctly. What do I do wrong? I also tried .setFormula.