I am trying to create a Sub that places a SUMIF formula in a cell. I have reduced the problem to a simple setup:
SUMIF
Private Sub CommandButton1_Clic
.Formula accepts formulas in English. Parameter separator in English is ,.
.Formula
,
If you want to use formulas in the language of your Excel installation, use .FormulaLocal.
.FormulaLocal
However to ensure your code will run on any Excel, fix your formula to be in accordance with the en-us locale.
en-us