No RESUME

You are using an On Error statement in a procedure, but have not included a Resume statement.

Insert one or more Resume statements at the appropriate points in the script.