Outlook.Application

Acke

Registered User.
Local time
Today, 01:31
Joined
Jul 1, 2006
Messages
158
I am trying to conect my db to Outlook. The code I want to use begins with:

Dim objOutlook As outlook.application

If I try to run the code, I recive "Compile error: User-defined type not defined"

I guess Outlook.Application is built in feature. I presume that when I type "As" I should find the word Outlook in the drop-down list. Well, I don't. After typing above-mentioned line and pressing "enter", the word application changes to Application (capital A) while outlook stays with small first letter o. I am using MS Office 2003. What is wrong? Is my prosumption that Outlook is built-in feature wrong, or my software does not support it for some reason?

Thanks!!!
 
In Tools/References, you need to check the MS Outlook library.
 
In Tools/References, you need to check the MS Outlook library.

Hi PB

I did this without making the reference


Nidge
 
Thanks a lot!!!

It is very simple... if you know where to look.
 
No problem Acke!

I did this without making the reference

I suspect you used late binding. I often do as well. The OP is using early binding, which requires the reference.
 

Users who are viewing this thread

Back
Top Bottom