I am getting HRESULT: 0x800A03EC on Worksheet.range method. Number of rows are more than 70K. Office 2007.
Code:
Microsoft.Office.Interop.Excel.Range
I got this exception because I typed:
ws.get_Range("K:K").EntireColumn.AutoFit(); ws.get_Range("N:N").EntireColumn.AutoFit(); ws.get_Range("0:0").EntireColumn.AutoFit();
See a mistake? Hint: Excel is accepting indexing from 1, but not from 0 as C# does.