Hi,
You can do this:
'Place this above the line you get the error
On Error Goto ErrorHandler
Somewhere within the same sub place this
ErrorHandler:
If Err.Number = 10(you need to make this the error number you get)
msgbox "Error"
end if
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200710/1