Unload addin callback

May 7, 2011 at 5:05 PM


Is there a way to get a notification when the Excel addin is being unloaded? I need to make a call to terminate my WPF DispatchThread before the addin unloads.


May 7, 2011 at 5:28 PM
Solved it :
Implement ExcelDna.Integration.IExcelAddIn. It has an AutoClose method, called when the addin is unloaded.
Jan 4, 2013 at 12:55 PM
Edited Jan 4, 2013 at 12:55 PM

Could you please show a code example of AutoOpen and AutoClose methods using ExcelDna.Integration.IExcelAddIn?