
CDO vs Outlook 2000 Object Library?? (Outlook Newbie)
Answers will be inline to your comments/questions.
Quote:
> Hi
> Just got Outlook 2000. This is probably a stupid question but..
> a) If using Outlook 2000, what's the advantage of using the (optionally
> installable) CDO library over using the Outlook 9.0 Object Library?
Some messaging objects/properties are not exposed by the Outlook object
library and CDO comes in very handy to balance out the missing features.
(Note: Outlook object model much easier to work with, but doesn't support
code running under a service. CDO is supported from a service. Also
Outlook does not expose the Address Book list you see when pressing CTRL +
SHIFT + B while CDO does.)
Quote:
> b) If I already have Outlook (2000) running, can I use GETOBJECT from
Access
> to define a reference to the visible application or not? I have tried
> Set objOL = GetObject ("Outlook.Application") to no avail, whilst
> Set ObjOL = New Outlook.Application works fine...
Yes. Try:
GetObject (,"Outlook.Application") 'Note the comma
Quote:
> And..
> c) If you're logging onto an Exchange Server when launching Outlook, can
> that be automated too from code?? Is this where CDO comes in??
You could try the following using the Outlook Object model, but I don't know
if it will work because I usually kick things off with CDO.
Set objOutlook = CreateObject("Outlook.Application")
Set objNameSpace = objOutlook.GetNamespace("MAPI")
' Set the False to True to get the Profile picker
objNamespace.logon "profilename", "password", False, True
Cheers...
/Neo