How do I apply a SumIf Formula in a VBA Sub? Getting Error 1004
Solution 1:
.Formula
accepts formulas in English.
Parameter separator in English is ,
.
If you want to use formulas in the language of your Excel installation, use .FormulaLocal
.
However to ensure your code will run on any Excel, fix your formula to be in accordance with the en-us
locale.