"Rounding" error
An italian MVP suggest to me this way:
replace the
Cells(EndToCollectionRow - 1, ColNdx).FormulaLocal = ...
with
Cells(EndToCollectionRow - 1, ColNdx).Formulalocal = ...
With Cells(ETCR - 1, ColNdx)
.FormulaArray = .Formula
End With
I tried it and it works.
Hoping to hear you about other questions ;)
I don't know why you must pass through .Formulalocal
Ciao Alex.
Stuart wrote:
Ok. In my situation I now have
sStr = "=SUM(ROUND(" & Range(Cells(StartToCollectionRow, "C"), _
Cells(EndToCollectionRow - 2, "C")).Address & ") * (" & Range _
(Cells(StartToCollectionRow, ColNdx), _
Cells(EndToCollectionRow - 2, ColNdx)).Address & "), 2)"
Debug.Print sStr
which gives "=SUM(ROUND($C$7:$C$40) * ($E$7:$E$40), 2)"
How do I return that result to the range
Cells(EndToCollectionRow - 1, ColNdx) , please?
Regards.
|