Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2007

Tip: Looking for answers? Try searching our database.

EMAIL MERGE WITH 2 or + ATTACHMENTS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
thomas79 - 13 Jun 2007 20:40 GMT
Hi I tried this tutorial:

http://word.mvps.org/FAQs/MailMerge/MergeWithAttachments.htm

and it works but it sends only the attachment in the third column
(attachment2) while the attachment1 no.
How can I fix it? I need to send 2 attachments…. I tried to use 4 columns
but it always  just send the attachment in the last one...

Thank you
Doug Robbins - Word MVP - 14 Jun 2007 10:59 GMT
I can assure you that if you do it correctly, it will handle any number of
attachments.

This section of the code:

   For i = 2 To Maillist.Tables(1).Columns.Count
           Set Datarange = Maillist.Tables(1).Cell(Counter, i).Range
           Datarange.End = Datarange.End - 1
           .Attachments.Add Trim(Datarange.Text), olByValue, 1
   Next i

Gets the information about each attachment from the second and any following
columns of the document created by exceuting the catalog mail merge.

Most probably reason for missing attachments are errors in the path\filename
in that catalog document.  The slightest error is all that it will take e.g.
two spaces where there should only be one in a folder or filename.
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

> Hi I tried this tutorial:
>
[quoted text clipped - 6 lines]
>
> Thank you
thomas79 - 14 Jun 2007 14:14 GMT
Thank you fro your reply.
Unluckily the problem is not the path, I wrote it correct, if I switch the
paths the result si that it sends only the file in the last column (that
before was in the second and was unsent).
I tried to send only one file ( only 1 column for the attachment) and it
works but if I add others it send only the file in the last. I don't
understand why.
Doug Robbins - Word MVP - 14 Jun 2007 20:53 GMT
Nor do I understand why.  I can assure you though I use the routine
regularly to send multiple attachments, sometimes as many as 10 or 12 and
the only time it does not work is if I MADE A MISTAKE IN ENTERING THE PATH
OR FILENAME.in the datasource from which the directory merge is created.

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

> Thank you fro your reply.
> Unluckily the problem is not the path, I wrote it correct, if I switch the
[quoted text clipped - 3 lines]
> works but if I add others it send only the file in the last. I don't
> understand why.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.