EMAIL MERGE WITH 2 or + ATTACHMENTS

D

Doug Robbins - Word MVP

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.
--
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
 
T

thomas79

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.
 
D

Doug Robbins - Word MVP

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.



--
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