In VBA for Excel 2017 on my iMac I have the following problem:
Sub UpdateSummary()
Total = "=QUOTIENT(120;60)"
Sheets("Summary").Range("H15").Formula = Total
End Sub
This gives run time error 1004
However if I do:
Sub UpdateSummary()
Total = "QUOTIENT(120;60)"
Sheets("Summary").Range("H15").Formula = Total
End Sub
and add the = sign manually in the cell H15, the formula works as expected.
What can I do to solve this problem?
PS: The original code is more complex than above obviously, but this code snippet is generating the error and probably easier to understand than the original code.