Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email errotr handler code 1

Status
Not open for further replies.

mustangcoupe

Technical User
Feb 26, 2003
221
US
I have used an email error handler found in the faqs... faq705-3994

but it wont compile. it errors on the dim statements Dim objOutlook As Outlook.Application Dim objEmail As Outlook.MailItem in the emailerror function.

I get a user defined type not defined.

does anyone know how to fix this ( If I comment out the dim statement and the option explicit it works fine....)

--Todd


TechnicalUser pretending to be a programmer(shhh… the boss doesn’t know yet)
 
Do you have a reference to the Microsoft Outlook <version >Object library (Tools | References in VBE)?

Roy-Vidar
 
thanks Roy, NOPE I didnt...

--Todd


TechnicalUser pretending to be a programmer(shhh… the boss doesn’t know yet)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top