You just need an error-handling event in the code.
This On Error will trigger the procedure to end
Sub ProcedureName
On Error Goto MyErrorHandler
//
your code here
//
Exit Sub
MyErrorHandler:
End Su
--
crispb
-----------------------------------------------------------------------
crispbd's Profile:
http://www.excelforum.com/member.php...fo&userid=1088
View this thread:
http://www.excelforum.com/showthread.php?threadid=27419