* If you do something like > >m.loExcel = CREATEOBJECT( "Excel.Application" ) > >* can you then reliably check if it was instantiated successfully with > >IF TYPE( "m.loExcel" ) == "O" AND NOT ISNULL( m.loExcel ) > * Invocation successful >>
TYPE([m.loExcel.Name])but this is just me :-)
m.loExcel = CREATEOBJECT( "Excel.Application" )Then just stop code and kill Excel with Task Manager or kill the Excel process with WMI.