Embedding Images in HTML email

P

Paul Brett

Hi,
I'm trying to use VBA to create graphical headers/footers in Outlook
emails, using embedded rather than linked images. I have tried to follow
the instructions on Slipstick.com here:

http://www.slipstick.com/dev/code/htmlimg.htm

However, I get compile/run time errors for all the lines that include
MAPI, such as:

Dim oSession As MAPI.Session
Dim oMsg As MAPI.Message

these all give "Compile error: User-defined type not defined"

Here's my setup:
Windows XP HE
Outlook 2002 SP-2
Microsoft CDO for Windows 2000 Library
Microsoft ActiveX Data Objects 2.7 Library
(also have Office, Word, Outlook, OLE & VBE Libraries referenced)

Am I missing an important Class Library? Any ideas where I'm going
wrong?

Thanks,
 
S

Sue Mosher [MVP]

Sounds like you don't have the Collaboration Data Objects (CDO) component installed. As that page explains, CDO 1.21 is required. Rerun Outlook setup and install it.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
P

Paul Brett

Sounds like you don't have the Collaboration Data Objects (CDO)
component installed. As that page explains, CDO 1.21 is required.
Rerun Outlook setup and install it.

Looks like that's done it. I thought I had CDO (but it was CDO for Windows
2000). Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top