[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Reference needed for MAPI.session? ? ?

Posted on 2006-05-31
5
Medium Priority
?
2,563 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:PvBredow
  • 3
  • 2
5 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 total points
ID: 16797019
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
 

Author Comment

by:PvBredow
ID: 16797147
Thanks.

Now, if I can just find cdo.dll ...
0
 
LVL 76

Expert Comment

by:David Lee
ID: 16797771
It should be in C:\Program Files\Common Files\System\MSMAPI\1033
0
 

Author Comment

by:PvBredow
ID: 16803782
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
 
LVL 76

Expert Comment

by:David Lee
ID: 16803859
Sorry, I don't remember if it's an option or not.  It might be.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question