
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
Let me explain what i did
1) I have created a seperate directory in a word document according to your
instruction. I can see the result in the other page that shows all the email
addresses and attachement path in the table and saved with a name (xyz.doc),
2) I closed the file (xyz.doc).
3) Opened a new document file and typed with a message to send, also i have
inlcuded your macro in this new document, when I try to run your macro, it
asked me a file to execute, i have choosen xyz.doc, then it prompted me to
enter a subject, i entered a subject and pressed OK, it had sent email with
my outlook.
4) when opened a mail that i have sent, the first mail that contain Message
with attachment, but the other all emails that contains only attachment
without Message.
Please tell me which step i missed out.
- Abdul
> You are not running the macro when a document created by executing the merge
> that contains the message that is to be in the body of the emails to a new
[quoted text clipped - 75 lines]
> >> >> >> >
> >> >> >> > Thanks
Doug Robbins - Word MVP - 02 Apr 2008 04:01 GMT
This is the step that you missed:
"Then execute to a new document the mail merge that you want to send out by
email with the attachments and with the result of execution of that mail
merge on the screen, run a macro containing the following code."
The document that you created in your step 3 must be a mail merge main
document that has attached to it the same data source as you used to create
xyz.doc. You must then execute the merge of the step 3 document to a new
document. There is no need to save this document, but it must be the active
document when you 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
> Let me explain what i did
> 1) I have created a seperate directory in a word document according to
[quoted text clipped - 111 lines]
>> >> >> >> >
>> >> >> >> > Thanks
Abdul - 02 Apr 2008 09:29 GMT
Thanks for your immediate response, I have followed your steps that you have
mentioned, but still not it's the same thing happening, could you please
explain in a simple steps? I am very new to macros.
-Abdul
> This is the step that you missed:
>
[quoted text clipped - 123 lines]
> >> >> >> >> >
> >> >> >> >> > Thanks
Doug Robbins - Word MVP - 02 Apr 2008 12:27 GMT
It has nothing to do with macros. The document that is the active document
when you run the macro must have the same number of sections as there are
records in the data source and also records in the directory type mail merge
document.
How many sections does that document have?

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
> Thanks for your immediate response, I have followed your steps that you
> have
[quoted text clipped - 144 lines]
>> >> >> >> >> >
>> >> >> >> >> > Thanks