Some other code in the project that I'm trying to fix.
listO.Range(i, j).FormulaR1C1 = FormulaMatrix(i, j)
where FormulaMatrix(i, j) always a String value. Regardless of the random / test value that I am trying to use, it is assigned successfully, unless it is a formula, for example.
=IF(LENGTH([@Units])>0;[@SalesAmount]-[@DiscountAmount]0)
If I delete the = sign at the beginning of the formula, it is assigned correctly, but then it is useless because it is not a formula.
@Units , @SalesAmount , @DiscountAmount are the links / column names.
So, when assigning a formula, I get an exception HRESULT: 0x800A03EC . I looked in this answer for an explanation and followed some of the instructions. I decided that my problem is this: the problem arises due to the function entered in the cell and is trying to update another cell.
This post is also noted . I tried a completely different one (for example, I just put the formulas without = , and then ran it again and put equal signs), but the same problem.
I do not know how to approach this.
source share