I have searched the net but cannot seem to find what I need. I am creating an application where I detect all the Excel Applications currently running in the system. It is returned through a class by indexers:
ExcelAppsInMemory excelAppsInMemory= new ExcelAppsInMemory();
for(int i=0; i<excelAppsInMemory.Count; i++)
{
excelAppsInMemory[i].WorkbookOpen += new Excel.AppEvents_WorkbookOpenEventHandler(frmDirtyExcel_WorkbookOpen);
}
Well, you have guessed it right... it dosen't work. So, how do I create event handlers for Workbook events for excel applications that are captured during runtime.
Thanks in advance