Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
The Mysterious J The Mysterious J is offline
external usenet poster
 
Posts: 5
Default Issues w/ Word MVP Macro to Mailmerge w/ Attachment

I've tried the instructions from Word MVP. I believe I have followed
everything correctly. The pasted macro created the following compile error:
"Compile error: User-defined type not defined.": with the following lines:

Dim oOutlookApp As Outlook.Application
Dim oItem As Outook.MailItem

I read the post where Doug Robbins indicates:
Recheck again whether the Outlook Object Library still has a checkmark
against it. Almost certainly, that is the cause of the problem.

I don't know where to find that.

Also, I tried just removing those two lines of code, and the macro ran
perfectly except it didn't attach anything to the e-mails.

Thanks in advance for your assistance.
 
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
Mailmerge Switch issues Sondra Mailmerge 6 February 18th 09 07:22 AM
Email word doc as attachment using a macro? lizb789 Microsoft Word Help 2 March 19th 08 08:56 PM
[Word 2003] macro issues imsite Microsoft Word Help 3 April 24th 07 09:48 AM
MailMerge Issues - doc 'forgets' source data, other issues Robert_L_Ross Mailmerge 2 February 22nd 07 10:38 AM
A Macro to E-mail Attachment from Word Jane Microsoft Word Help 0 September 12th 06 07:18 AM


All times are GMT +1. The time now is 05:32 PM.

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"