I have found the On Error Resume Next, which will disable those pesky popup error messages that stop automation, and even found Err.Source and Err.Description to get that information again.
My question is what do I do if I want the action to terminate in the event of any error? My tests are very dependent on everything going in order (I feel like lots of tests are like this) and I just want to get the first thing that caused the error and output that to a file, and then move on to the next action (which does not require proper execution of any previous actions).
Will just using the On Error Resume Next push it through all the way to the end of the action (since one thing fails multiple more will fail)? I don't want to deal with an array of 20 errors, as they will all be useless information. The only thing I want is the first error.
Any help would be great!
My question is what do I do if I want the action to terminate in the event of any error? My tests are very dependent on everything going in order (I feel like lots of tests are like this) and I just want to get the first thing that caused the error and output that to a file, and then move on to the next action (which does not require proper execution of any previous actions).
Will just using the On Error Resume Next push it through all the way to the end of the action (since one thing fails multiple more will fail)? I don't want to deal with an array of 20 errors, as they will all be useless information. The only thing I want is the first error.
Any help would be great!