Have you looked into Recovery scenarios or ''On Error Next''
Unexpected events, errors, and application crashes during a run session can disrupt your run session and distort results. This is a problem particularly when tests or components run unattended-the run pauses until you perform the operation needed to recover. To handle situations such as these, UFT enables you to create recovery scenarios and associate them with specific tests or application areas. Recovery scenarios activate specific recovery operations when trigger events occur.
The ''On Error Next'' statement can help to skip to next line of code if error but will cause problems troubleshooting issues and I do not recommend it very often.