Hi Tom,
Do you mean to say you've got a mailmerge document with MERGEFIELDs
embedded in INCLUDETEXT fields like:
'{INCLUDETEXT "{MERGEFIELD DocPath"}Agreement.doc"}'
where the DocPath is something like
'../Server/MainPath/LocalPath/'
and the document thus imported contains yet more mergefields?
I don't believe that will work.What I think you'll need to do is to go
into the source document that is imported via your INCLUDETEXT field and
bookmark the material either side of its MERGEFIELDs (multiple bookmarks
will be needed), then code your mailmerge document like:
'{INCLUDETEXT "{MERGEFIELD DocPath"}Agreement.doc" BkMrk1}' and
'{INCLUDETEXT "{MERGEFIELD DocPath"}Agreement.doc" BkMrk2}'
where BkMrk1 and BkMrk2 are your bookmark names, then insert the
MERGEFIELD you presently have in your INCLUDETEXT source document between
the new pair of MERGEFIELDs in your mailmerge document.
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
Tom Bean said:
macropod,
The INCLUDETEXT actually has the UNC path to the file rather than just a
file name and in some cases it does contain a MERGEFIELD that defines the
path. However, the test I ran with the \l switch was the simplest of
cases, where the document's path was completely specified, and it didn't
update any of the MERGEFIELDs in the inluded document.
Tom
macropod said:
Hi Tom,,
Where's the MERGEFIELD? If it's not used to tell the INCLUDETEXT field
which document to import, then the solution should be as simple as {
INCLUDETEXT "Agreement.doc" \!}
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
macropod,
Here's an example of a merge field to include a document:
{ INCLUDETEXT "Agreement.doc" }
Tom
Hi Tom,
Can you post your field coding? You'll need to copy the text out of
the fields and type the braces into your newsreader.
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
macropod,
I tried putting the \! switch in one of the INCLUDETEXT fields and I
still got the prompt to open a read-only copy and I also had an
"Error! Bookmark not defined" error for every merge field in the
included document.
At this point, I don't guess there's anything to do to prevent the
'read-only' prompt.
Thanks,
Tom
Hi Tom,
Provided you put in switch in the INCLUDETEXT field and not the
MERGEIELD, I would expect so.
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
macropod,
The documents I am including have MERGEFIELDs in them also. Will
the MERGEFIELDs be updated in I use the switch?
Thanks,
Tom
hi Tom,
You could try adding the \! switch. This prevents the INCLUDETEXT
field updating cross-references imported from the source document,
which may be all you need.
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
Occasionaly, a user has an included document open in Word while a
mail merge is running. This causes the mail merge to open a
message box with "Open document read-only?" The main document is
opened read-only so I thougth all the attachments would be opened
read-only too. But apparently not.
Is there any setting for INCLUDETEXT or for the Word application,
like DisplayAlerts, to prevent this message box?
Thanks,
Tom