I have previously used the MSScriptControl COM object and have switched to ClearScript. The problem I am seeing, currently, is that whatever implementation ClearScript uses doesn't honor the On Error Resume Next and simply crashes out, throwing an error.
Is there a way to have ClearScript honor this error handling or something I can do to prevent it from crashing?
Comments: This is a script containing a function that has an On Error Resume Next and calls into an office application. When an error occurs in this call, it crashes the application. An example is: On Error Resume Next Set xlSheet = ExcelApplication.Workbooks(strWorkbookName).Sheets(1) If the workbook doesn't exist, it crashes the application.
Is there a way to have ClearScript honor this error handling or something I can do to prevent it from crashing?
Comments: This is a script containing a function that has an On Error Resume Next and calls into an office application. When an error occurs in this call, it crashes the application. An example is: On Error Resume Next Set xlSheet = ExcelApplication.Workbooks(strWorkbookName).Sheets(1) If the workbook doesn't exist, it crashes the application.