Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Commented Unassigned: On Error Resume Next in VBScript [97]

$
0
0
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.

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>