I have been using this same routine for over 1.5 years with no problem then suddenly today I get the following error:
Exception from HRESULT: 0x800A03EC
My code reads an excel range into an array processes the array then puts the array back into the excel sheet. It has been processing over 52000 rows but today it fails at 5000 rows!
I am really stuck with this.
My code is the following:
Dim arrProcess As Array
Dim intRowNum As Integer = xlWorksheet1.Cells.CurrentRegion.Rows.Count
arrProcess = xlWorksheet1.Range("A2:AD" & intRowNum).Value
'do some processing
'Put array back to worksheet
xlWorksheet1.Range("A2:AD" & intRowNum).Value = arrProcess
'empty array
arrProcess = Nothing
Even if I do not process the array at all and put it straight back in I get an error.
Cheers