You can do that easily with 'try' ?try 'try' is a wrapper to run an expression that might fail and allow the user's code to handle error-recovery. HTH, Andy