I have this sub that types in a sum formula in A1 cell:
Sub test_string()
ThisWorkbook.Worksheets("test").Cells(1, 1) = "=СУММ(B1:D1)"
End Sub
At first it looks like it has worked, but when I open a worksheet there's a #NAME? error in A1 cell:
The error disappears when I manually calculate the formula (put cursor in formula's text and click Enter).
Why does this happen and is there a way to fix it? I tried
ThisWorkbook.Worksheets("test").Cells(1, 1).Calculate
But to no result.

=so"=SUM(B1:D1)"(Although I would not think that would result in #NAME ...)