Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
SaveCopyAs generating the 0x800a03ec exception
If I have a newly created Excel spreadsheet and I dont tab out of the
current cell and I call the SaveCopyAs method, then I get exception 0x800a03ec thrown. The user is in "edit mode" ie has typed something into a cell but hasn't confirmed it Any ideas on how to avoid this? (What the code is doing is saving the current Excel workbook into our database). Abridged sample code: try { o = System.Runtime.InteropServices.Marshal.GetActiveOb ject("Excel.Application")*; } catch (System.Exception) { // Excel is not running return; } _excelApp = o as Excel._Application; // connect to current Excel workBook _workBook = _excelApp.ActiveWorkbook; if (_workBook == null) { // No workbook is currently defined return; } _excelApp.DisplayAlerts = false; _workBook.SaveCopyAs(excelFile); |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
HRESULT: 0x800A03EC exception when trying to hide a sheet. | Excel Programming | |||
Exception from HRESULT: 0x800A03EC | New Users to Excel | |||
Exception from HRESULT: 0x800A03EC. at Microsoft.Office.Interop.Excel.WorkbookClass.get_VBProject() | Excel Programming | |||
Excel SaveCopyAs COMException 0x800A03EC | Excel Programming | |||
Chart.Export throws COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. | Excel Programming |