This except of VBA code
summ = "СУММ(AQ" + Format(first) + ":AX" + Format(last - 1) + ")"
cell = "AQ" + Format(last) + ":AX" + Format(last)
r.range(cell).Formula = "=" + summ
should insert a formula, e.g. =СУММ(DW6:EI18)
into DW19
.
(СУММ
is a Russian localized name for SUM
)
What happens is that correct formula above appears at its proper place but displays a #NAME
error. If I select the cell, put the cursor on the formula, and press enter, the formula doesn't change but starts working.
How to make the code above work?