compile error w/email merge+attachments

D

DianneMD

I've followed Doug's directions before to use Word email merge with
attachments. This time, however, when I try to run the macro prior to the
merge, I get an error in the following line: Dim oOutlookApp As
Outlook.Application.

I get a pop-up: Compile error: User-defined type not defined.

Anybody able to help me get beyond this? I appreciate it!!!

I checked my settings in VB Tools References, all ok.
Dianne
 
D

Doug Robbins - Word MVP

You have overlooked the step in the Preparations section of the article
covering the setting a reference to the Microsoft Outlook Object Library via
Tools>References in the Visual Basic Editor.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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