HRESULT: 0x800A03EC on Worksheet.range

前端 未结 23 2176
Happy的楠姐
Happy的楠姐 2020-11-22 07:42

I am getting HRESULT: 0x800A03EC on Worksheet.range method. Number of rows are more than 70K. Office 2007.

Code:

Microsoft.Office.Interop.Excel.Range         


        
23条回答
  •  忘了有多久
    2020-11-22 08:27

    I don't understand the issue. But here is the thing that solved my issue.

    Go to Excel Options > Save > Save Files in this format > Select "Excel Workbook(*.xlsx)". Previously, my WorkBooks were opening in [Compatibuility Mode] And now they are opening in normal mode. Range function works fine with that.

提交回复
热议问题