Reputation: 83
I got an exception 0x800A03EC when I was trying to execute this command in Excel Interop
ws.get_Range("A2").Value= "=?9ABC"
It seems that interop doesn't like string that starts with "=?". I tried to solve the issue by setting Calculation mode to Manual, but unfortunately it wasn't the solution. Could anyone please tell me what I should do?
Thanks, Kam
Upvotes: 0
Views: 779
Reputation: 17475
Excel will interpret values starting with =
as formulas. Therefore, store it as '=?9ABC
, as the '
tells Excel to interpret the string a text and not as formula.
Upvotes: 4