Excel error HRESULT: 0x800A03EC while trying to get range with cell's name

后端 未结 12 1546
无人共我
无人共我 2020-11-30 12:30

I am working with Window Service project. that have to write data to a sheet in Excel file in a sequence times.

But sometimes, just sometimes, the service throw out

12条回答
  •  感动是毒
    2020-11-30 12:48

    I ran into this error because I was attempting to write a string to a cell which started with an "=".

    The solution was to put an "'" (apostrophe) before the equals sign, which is a way to tell excel that you're not, in fact, trying to write a formula, and just want to print the equals sign.

提交回复
热议问题