Link to home
Start Free TrialLog in
Avatar of PvBredow
PvBredow

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PvBredow
PvBredow

ASKER

Thanks.

Now, if I can just find cdo.dll ...
It should be in C:\Program Files\Common Files\System\MSMAPI\1033
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
Sorry, I don't remember if it's an option or not.  It might be.