Reply
 
Thread Tools Display Modes
  #1   Report Post  
DianneMD
 
Posts: n/a
Default compile error w/email merge+attachments

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

  #2   Report Post  
Doug Robbins - Word MVP
 
Posts: n/a
Default compile error w/email merge+attachments

You have overlooked the step in the Preparations section of the article
covering the setting a reference to the Microsoft Outlook Object Library via
ToolsReferences 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

"DianneMD" wrote in message
...
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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge to E-mail with Attachments Cay Mailmerge 2 June 22nd 05 03:36 AM
Mail Merge with Attachments Murat Gordeslioglu Mailmerge 3 May 7th 05 01:24 AM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
E-Mail merge with attachments John Mailmerge 1 April 3rd 05 11:50 AM
How do you add attachments in Word for mail merge emails? Eric Linkugel Tables 7 March 23rd 05 07:31 AM


All times are GMT +1. The time now is 10:59 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"