Hi HappyHouse,
That's more a scripting language question than it is SecureCRT, but I will try to help.
The error handling mechanism in VBScript (which SecureCRT supports, not VBA, which is different) is the
On Error Resume Next construct. The
scripting manual has some info about using this mechanism in
Chapter 3.6 Handling Connection Failures Within a Script.
The task you are trying to accomplish sounds really close to what is exemplified in this example script.