Reference needed for MAPI.session? ? ?

I am trying to run some code to set the label of an appointment.      I have found the code for this, using CDO.
When I try to run it, it fails on the line:
           Dim objCDO As MAPI.Session

I believe this means that I am missing a reference to something, but I don't now what I should be trying to reference.
Can anyone tell me what reference I need to add to my project to enable this line to work?

Is this a really dumb question?        I often face this issue in which I know the name of something (such as CDO or MAPI), but I don't know the exact name of the DLL, and I don't know exactly what description to look for in VBA when trying to use Tools\References.        Everytime I do that I have to wonder if everyone else knows a clever way to avoid this issue, some search tool, or something like that.

I am happy with a specific answer to this question, and I would be delighted if someone could give me a general solution to this type of issue.

                  thanks,

                               PvBredow
PvBredowAsked:
Who is Participating?
 
David LeeConnect With a Mentor Commented:
Greetings, PvBredow.

The reference should be "Microsoft CDO 1.21 Library".  The physical file is CDO.dll.  No, there is no search tool that I know of.  It's just a matter of learning these things as you go.

Cheers!
0
 
PvBredowAuthor Commented:
Thanks.

Now, if I can just find cdo.dll ...
0
 
David LeeCommented:
It should be in C:\Program Files\Common Files\System\MSMAPI\1033
0
 
PvBredowAuthor Commented:
Thanks.  

It isn't in that directory, or anywhere else on my harddrive.     I have the Outlook 2003 client, SP2 installed.
Is CDO an installation option?       (This is on a corporate network, wonder if the admin. could simply have decided not to include that in the install package?)

                    PvBredow
0
 
David LeeCommented:
Sorry, I don't remember if it's an option or not.  It might be.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.