I don't think it is possible to give the document a name as part of the
mailmerge process. However, the new document does become the
activedocument, so you can include
ActiveDocument.SaveAs "[filename]"
which will give it a name, or, if you merely want a way of referring to the
document for further code execution, you can declare a variable as Document
and then use
Set mydoc = ActiveDocument.

Signature
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
>I use the Execute method of the Mailnerge object and it
> creates a new document called "Form Letters1".
[quoted text clipped - 8 lines]
>
> (hm, now what ambiguity will be found?)
TOM - 02 Apr 2004 04:18 GMT
OK the object of the exercise is to NOT prompt for saving
when a user CLOSES a new 'Form Letter' document.
I know the code for this if I know a document name and
where to put it (I think) but how do I do this without
risking losing document changes on closure for ALL other
docs.
I was hoping to name the appropriate docs as "xyz no
save" during the merge proces (somewhere in the merge
process) and then on closure search for 'no save' in the
name and execute the code.
>-----Original Message-----
>I don't think it is possible to give the document a name as part of the
[quoted text clipped - 23 lines]
>
>.
Doug Robbins - Word MVP - 02 Apr 2004 06:27 GMT
Instead of searching for "no save", search for "Form Letters"

Signature
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
> OK the object of the exercise is to NOT prompt for saving
> when a user CLOSES a new 'Form Letter' document.
[quoted text clipped - 52 lines]
>>
>>.
TOM - 02 Apr 2004 06:51 GMT
Yes and I have done so but there may be a small danger
that it might bite me on the backside as it might be not
unique enough.
>-----Original Message-----
>Instead of searching for "no save", search for "Form Letters"
[quoted text clipped - 57 lines]
>
>.
Doug Robbins - Word MVP - 02 Apr 2004 07:42 GMT
If the purpose of the exercise was to execute the merge to the printer
without the Print dialog appearing, then execute it to a document, use
ActiveDocument.PrintOut and then ActiveDocument.Close wdDoNotSaveChanges.

Signature
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
> Yes and I have done so but there may be a small danger
> that it might bite me on the backside as it might be not
[quoted text clipped - 80 lines]
>>
>>.