VBE Object for Outlook

D

Dave Miller

I am trying to add a reference to the cdo 1.21 library. However, it
seems that unlike other MS Office programs that support VBA, there is
no VBE object to manipulate.

Any help would be appreciated.

David Miller
 
K

Ken Slovak - [MVP - Outlook]

Are you adding a reference to CDO.DLL (Microsoft CDO 1.21 Library)?

What do you mean by "no VBE object to manipulate"? What are you trying to
do?
 
E

Eric Legault [MVP - Outlook]

Do you mean VBA object? Are you adding the CDO reference to the VBA Editor
in Outlook? You should already have access to VBA, as this is already
checked as "Visual Basic for Applications" in the References dialog.
 
S

Sue Mosher [MVP-Outlook]

DId you install CDO 1.21 on the machine? It doesn't install by default.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

Dave Miller

I want to check to see if the reference is already added. If not, I
want to be able to add it programatically , so that I do not have to
set the references for about 100 people.
 
E

Eric Legault [MVP - Outlook]

Check out the ItemsCB sample at http://www.microeye.com/resources/code.htm
for some code on how to check for the presence of CDO and how to prompt for
the user to insert their Office CD or automatically install it if the install
source is available.

You can also use the Office Resource Kit to customize a multi-user
deployment to ensure that CDO or other dependencies are installed.
 
S

Sue Mosher [MVP-Outlook]

I don't think that can be done programmatically. Given that Outlook VBA code can't be imported programmatically, it's something of a moot issue anyway.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
D

Dave Miller

I decided to just overwrite everyone's VbaProject.OTM. However, since
I have the attention of such an esteemed group of MVP's; Is there a
better way to distribute Outlook code?
 
S

Sue Mosher [MVP-Outlook]

A COM add-in is the only supported solution.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top