Adding formula to cell Exception from HRESULT: 0x800A03EC

前端 未结 4 1946
萌比男神i
萌比男神i 2021-01-23 00:04

I\'m trying to add a formula to cell but i got the error Exception from HRESULT: 0x800A03EC There are lots of posts with similar issues however none could help

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-23 00:55

    It is a crappy exception and doesn't mean anything more than you slamming Excel with processing requests at a rate that it cannot keep up with. Your program essentially looks like a hyper-active user that's entering formulas at a rate of one per microsecond.

    The workaround is to go slower by intentionally sleeping or to force Excel to do less work. You will very probably fix it in this case by assigning the Application.Calculation property. Set it to manual before you start putting formulas into cells. And back to auto after you're done.

    More good advice in this blog post.

提交回复
热议问题