Embedding Images in HTML email

  • Thread starter Thread starter Paul Brett
  • Start date Start date
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,
 
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
 
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.
 
Back
Top