Forum Discussion
Dmitry_Nikolaev
Staff
15 years agoHi Sumedha,
Just use the 'return' statement.
try{
oExcel.Workbooks.Open(fileName); //Exception occurs at this point when it tries to find a non-existing excel file
}
catch(e)
{
Log.Error("Exception occured",e.description);
return null;
}