Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
In Excel-2007 addin, in ShutDown functionality for closing all open files. I have written following code: Try 'Close All Open documents Dim exlWorkBook As Excel.Workbook If Application.Workbooks.Count = 1 Then Application.ActiveWorkbook.Close(False) Else For Each exlWorkBook In Application.Workbooks exlWorkBook.Close(False) Next End If Catch ex As Exception Debug.WriteLine(ex.Message) End Try The exception is "Exception from HRESULT: 0x800AC472". Any suggesstions will be helpful. Thanks Mahesh |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003/Excel 2007 Add-Ins Do Not Reset after closing files | Excel Programming | |||
Problem when closing Excel 2007 and with Add-ins | Excel Discussion (Misc queries) | |||
Problem opening Excel 2007 files | Excel Discussion (Misc queries) | |||
Excel 2003/2007 Crash when opening/closing files | Excel Discussion (Misc queries) | |||
Problem loading Excel 2007 files in Excel 2003 | Excel Discussion (Misc queries) |