
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
Am Fri, 13 Oct 2006 18:59:25 UTC, schrieb "Doug Robbins - Word MVP"
<dkr@REMOVECAPSmvps.org> auf microsoft.public.word.vba.general :
> ActiveDocument.MailMerge.DataSource.Name
>
> returns the path\filename of the data source attached to a mailmerge main
> document.
Thanks for the hint.
And then
Set myDatasource = Documents(myMainDoc.MailMerge.Datasource.Name)
results in the Datasource as an object.
Yours,
L.W.
Lüko Willms - 26 Oct 2006 11:20 GMT
Am Fri, 13 Oct 2006 21:04:47 UTC, schrieb "Lüko Willms"
<l.willms@domain.invalid> auf microsoft.public.word.vba.general :
> > ActiveDocument.MailMerge.DataSource.Name
> >
> > returns the path\filename of the data source attached to a mailmerge main
> > document.
> And then
> Set myDatasource = Documents(myMainDoc.MailMerge.Datasource.Name)
But MS-Word rejects "C:\Eigene
Dateien\mySubdirectory\myFilename.doc" as an invalid filename... at
least before the code executes an
ActiveDocument.Mailmerge.EditDatasource. It seems that
.Mailmerge.CreateDataSource does not yet create the document, only the
following .EditDataSource does. Strange, isn't it?
L.W.