In the directory or catalog type mailmerge main document, you DO need to set
up the mergefields (the field for the email address and that containing the
path and filename of the attachment in the cells of a table as described in
the article. The macro will NOT work if you do not do it that way.
Then, with the formletter type mailmerge document, you MUST execute that
merge to a new document. When you do that, the new document will become the
active document (the one on the screen) and while it is the active document,
you then run the macro.

Signature
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
> Well I've done the preparation part of your document:
> i.e thevisual basic editor selecting references from the tool menu etc
[quoted text clipped - 53 lines]
>> >> >> > up
>> >> >> > and attached in the merge.
LJ - 17 Sep 2005 00:27 GMT
Ok I think I've done everything! but when I run the Macro it comes up with
the error message Compile error. user-defined type not defined and
highighlights the line
Dim oOutlookApp A Outlook.Application
I thought it might have refered to the prepartion part where you state
"check the items microsoft office Outlook 11.0 object library" but I have
done this and checked it was ticked!
Help! Part of me what's to give up as 'above my head' and the other part
wants to crack this!!!
> In the directory or catalog type mailmerge main document, you DO need to set
> up the mergefields (the field for the email address and that containing the
[quoted text clipped - 63 lines]
> >> >> >> > up
> >> >> >> > and attached in the merge.
Doug Robbins - 18 Sep 2005 20:14 GMT
The line should be
Dim oOutlookApp As Outlook.Application

Signature
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
> Ok I think I've done everything! but when I run the Macro it comes up with
> the error message Compile error. user-defined type not defined and
[quoted text clipped - 87 lines]
>> >> >> >> > up
>> >> >> >> > and attached in the merge.
LJ - 19 Sep 2005 10:28 GMT
Ok I've got the macro to run I've set it up to do a merge to 8 email
addresses but when I run the macro it attempts to merge to over 250 which is
at that point where I've stopped it by closing word!
help what have I done wrong.
> The line should be
>
[quoted text clipped - 91 lines]
> >> >> >> >> > up
> >> >> >> >> > and attached in the merge.
Doug Robbins - 19 Sep 2005 18:41 GMT
I believe that you emailed me about this. Hopefully now you have it worked
out.

Signature
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
> Ok I've got the macro to run I've set it up to do a merge to 8 email
> addresses but when I run the macro it attempts to merge to over 250 which
[quoted text clipped - 114 lines]
>> >> >> >> >> > up
>> >> >> >> >> > and attached in the merge.