Error Message

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

I'm trying to use the following code:

Dim objSession As New MAPI.Session

But I get this error message:

"User defined type not defined"


I'm assuming it has to do with "MAPI" but I'm not sure how
to correct it.

Thanks for the help.
 
That error usually indicates that you did not install CDO as part of your Outlook installation. Rerun Outlook setup.
 
You must set a reference to the Microsoft CDO 1.21 Library in the References
dialog inside the VBA Editor.

If it is not listed, you must install the "Microsoft Collaboration Data
Objects" component under the Outlook section in Office Setup.
 
Back
Top