I'm wondering if some other software create Excel instance, is it possible from c# to access that instance and close but without killing the process ?
I had tried with Marshal.GetActiveObject("Excel.Application")
but that is throwing me the error:
System.Runtime.InteropServices.COMException: 'Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))'