why not just use normal error handling code?
VB Code:
  1. Exit Sub
  2.  
  3. SomeError:
  4.  
  5. If err.number=117 then
  6.    msgbox "No way!"
  7. elseif 'blah blah blah
  8. '...
  9. End if
  10.  
  11. End Sub