tonofsteel
Active member
- Joined
- Jul 10, 2003
- Messages
- 35
I use this code in a public function in the main form, as it needs to be used in several completely different occations. It works perfect if i but it in a button, but as soon as it is inside a function I call..... trajedy:
And I get this error:
An unhandled exception of type System.Runtime.InteropServices.COMException occurred in mscorlib.dll
Additional information: Exception from HRESULT: 0x800A03EC.
Code:
If WriteString <> Nothing Then
xlSheet.Cells(yer, counter - (10 - i)) = WriteString
End If
And I get this error:
An unhandled exception of type System.Runtime.InteropServices.COMException occurred in mscorlib.dll
Additional information: Exception from HRESULT: 0x800A03EC.