View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
neoret neoret is offline
external usenet poster
 
Posts: 3
Default Close excel application

I have developed an addin using C#.

I need to close the application from my addin. I tired using the close
method like this:

private Microsoft.Office.Interop.Excel.Application excelAppl = null;
public Microsoft.Office.Interop.Excel.Workbook theActiveExcelWorkbook = null;

excelAppl = (Microsoft.Office.Interop.Excel.Application)offApp lObject;
theActiveWorkbook = excelAppl.ActiveWorkbook;

this.theActiveWorkbook.Close(false, false, missing);

That does noe work. The code is called but nothing happens. No error message
or nothing...

Do you have some advice for me on how to make this work.