> It certainly is. Take a look at the information on fellow MVP Albert
> Kallal's website at
[quoted text clipped - 8 lines]
>>be able to build a mailmerge Word template that doesn't have a destination
>>for the data to merge.
Check out OpenDataSource in the Visual Basic help file. It attaches a data
source to the specified document, which becomes a main document if it's not
one already.
Here is the example that is given there:
With docNew.MailMerge
.MainDocumentType = wdFormLetters
.OpenDataSource _
Name:="C:\Program Files\Microsoft Office" & _
"\Office\Samples\Northwind.mdb", _
LinkToSource:=True, AddToRecentFiles:=False, _
Connection:="TABLE Orders"
End With

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
>I read all that Doug and I must admit that I don't see how it relates to my
>problem. I am happy with my automation code, but just need to be able to
[quoted text clipped - 18 lines]
>>>seeem to be able to build a mailmerge Word template that doesn't have a
>>>destination for the data to merge.
Dixie - 26 Jun 2005 02:13 GMT
My main problem is how do I get the fields into the mailmerge document in
the first place if it has no source for the mailmerge data nominated inside?
dixie
> Check out OpenDataSource in the Visual Basic help file. It attaches a
> data source to the specified document, which becomes a main document if
[quoted text clipped - 33 lines]
>>>>seeem to be able to build a mailmerge Word template that doesn't have a
>>>>destination for the data to merge.
Doug Robbins - 26 Jun 2005 05:42 GMT
Using the Fields item from the Insert menu, you can insert mergefields.
They will not work of course until there is a data source attached to the
document and the names of the fields that were inserted manually by this
method must match the names of the fields in the data source.

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
> My main problem is how do I get the fields into the mailmerge document in
> the first place if it has no source for the mailmerge data nominated
[quoted text clipped - 39 lines]
>>>>>seeem to be able to build a mailmerge Word template that doesn't have a
>>>>>destination for the data to merge.
Graham Mayor - 26 Jun 2005 06:04 GMT
As long as you know the field names, you can manually insert fields into
your document without first attaching a data file using CTRL+F9 to set the
field boundaries and the following syntax - {Mergefield fieldname}

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> My main problem is how do I get the fields into the mailmerge
> document in the first place if it has no source for the mailmerge
[quoted text clipped - 55 lines]
>>>>> a mailmerge Word template that doesn't have a destination for the
>>>>> data to merge.
Dixie - 26 Jun 2005 06:54 GMT
Ah, the light goes on. Thankyou. I am embarassed I didn't think of that.
Thankyou Graham and Doug. I will play around with these concepts and see
what comes of them. Unfortunately, I am up to my hair clips in work right
now, but as soon as I can, I will devote some time to it.
dixie
> As long as you know the field names, you can manually insert fields into
> your document without first attaching a data file using CTRL+F9 to set the
[quoted text clipped - 59 lines]
>>>>>> a mailmerge Word template that doesn't have a destination for the
>>>>>> data to merge.
Dixie - 26 Jun 2005 02:16 GMT
My visual basic help file does not have a reference to OpenDataSource - it
is the Office 2000 one.
dixie
> Check out OpenDataSource in the Visual Basic help file. It attaches a
> data source to the specified document, which becomes a main document if
[quoted text clipped - 33 lines]
>>>>seeem to be able to build a mailmerge Word template that doesn't have a
>>>>destination for the data to merge.
Doug Robbins - 26 Jun 2005 05:44 GMT
In the visual basic editor, type
ActiveDocument.MailMerge.
After typing the period after MailMerge, the intellisense will display a
list of options which will include OpenDataSource or something equivalent (I
don't have access to 2000 so cannot check). If you select that item and
then press F1, you will get the help information for it.

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
> My visual basic help file does not have a reference to OpenDataSource - it
> is the Office 2000 one.
[quoted text clipped - 38 lines]
>>>>>seeem to be able to build a mailmerge Word template that doesn't have a
>>>>>destination for the data to merge.