I have a function that emails a document using Outlook - if it is run a machine that hasn't got outlook installed, it crashes due to not having the proper reference available. It displays the error "User defined type not defined" and goes into debug mode.
Is there a way of intercepting this error and just displaying the message "Cannot proceed, you do not have the correct software", or similar? (Or simply "Function failed" and exiting the function will do).
Any help would be much appreciated.




