Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Primus Primus is offline
external usenet poster
 
Posts: 4
Default Mailmerge field result to insert word document

I have a my data source for mailing customers and once merged the «EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is to
find the relating .doc file and insert the text from it.

Is this possible?

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mailmerge field result to insert word document

You could use

{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}"}
OR
{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}.doc"}

Depending on what is in the EntryID field

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Primus" wrote in message
...
I have a my data source for mailing customers and once merged the «EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is to
find the relating .doc file and insert the text from it.

Is this possible?



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Primus Primus is offline
external usenet poster
 
Posts: 4
Default Mailmerge field result to insert word document

Hi Graham,

Thanks for the reply, I have tried various versions of what you suggested
but just keep getting text after the entry number:

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}" }

Should I omit anything from the code?


"Graham Mayor" wrote:

You could use

{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}"}
OR
{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}.doc"}

Depending on what is in the EntryID field

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Primus" wrote in message
...
I have a my data source for mailing customers and once merged the «EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is to
find the relating .doc file and insert the text from it.

Is this possible?



.

  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Mailmerge field result to insert word document

Press Alt+F9 to toggle off the display of the field codes (and maybe F9 to
update the fields)

--
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, originally posted via msnews.microsoft.com

"Primus" wrote in message
...
Hi Graham,

Thanks for the reply, I have tried various versions of what you suggested
but just keep getting text after the entry number:

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield
EntryID}.doc" }

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}" }

Should I omit anything from the code?


"Graham Mayor" wrote:

You could use

{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}"}
OR
{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}.doc"}

Depending on what is in the EntryID field

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Primus" wrote in message
...
I have a my data source for mailing customers and once merged the
«EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is
to
find the relating .doc file and insert the text from it.

Is this possible?



.

  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Mailmerge field result to insert word document

Hi Primus,

It appears you've omitted the final path separator from your field code. Before executing the merge it should read:
{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield EntryID}.doc" }

--
Cheers
macropod
[Microsoft MVP - Word]


"Primus" wrote in message ...
Hi Graham,

Thanks for the reply, I have tried various versions of what you suggested
but just keep getting text after the entry number:

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}" }

Should I omit anything from the code?


"Graham Mayor" wrote:

You could use

{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}"}
OR
{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}.doc"}

Depending on what is in the EntryID field

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Primus" wrote in message
...
I have a my data source for mailing customers and once merged the «EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is to
find the relating .doc file and insert the text from it.

Is this possible?



.




  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Primus Primus is offline
external usenet poster
 
Posts: 4
Default Mailmerge field result to insert word document

Ok if I update the field I still keep getting "Error! Not a valid filename."

I have the word document 69703.doc in the following path
"Q:\BookData\Editor\Entries\69703.doc" if I paste this in to windows explorer
it opens up the word document so I know it's a valid filename/path.

BEFORE MERGE
EntryID{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield
EntryID}.doc" }

AFTER MERGE
69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield EntryID}.doc" }

I don't see that I'm missing anything, or should I be putting this code into
the EntryID date itself?


"macropod" wrote:

Hi Primus,

It appears you've omitted the final path separator from your field code. Before executing the merge it should read:
{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield EntryID}.doc" }

--
Cheers
macropod
[Microsoft MVP - Word]


"Primus" wrote in message ...
Hi Graham,

Thanks for the reply, I have tried various versions of what you suggested
but just keep getting text after the entry number:

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}" }

Should I omit anything from the code?


"Graham Mayor" wrote:

You could use

{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}"}
OR
{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}.doc"}

Depending on what is in the EntryID field

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Primus" wrote in message
...
I have a my data source for mailing customers and once merged the «EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is to
find the relating .doc file and insert the text from it.

Is this possible?



.


.

  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Mailmerge field result to insert word document

Hi Primus,

You've got the field code display toggled to 'on'. Press Alt-F9 to toggle it off again.

Alternatively (or as well), embed your INCLUDETEXT text field in the mailmerge main document inside a QUOTE field, thus:
{QUOTE{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield EntryID}.doc" }}
That will cause Word to unlink the field and display its output regardless of the field code toggle state when the mailmerge is run.

--
Cheers
macropod
[Microsoft MVP - Word]


"Primus" wrote in message ...
Ok if I update the field I still keep getting "Error! Not a valid filename."

I have the word document 69703.doc in the following path
"Q:\BookData\Editor\Entries\69703.doc" if I paste this in to windows explorer
it opens up the word document so I know it's a valid filename/path.

BEFORE MERGE
EntryID{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield
EntryID}.doc" }

AFTER MERGE
69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield EntryID}.doc" }

I don't see that I'm missing anything, or should I be putting this code into
the EntryID date itself?


"macropod" wrote:

Hi Primus,

It appears you've omitted the final path separator from your field code. Before executing the merge it should read:
{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries\\{Mergefield EntryID}.doc" }

--
Cheers
macropod
[Microsoft MVP - Word]


"Primus" wrote in message ...
Hi Graham,

Thanks for the reply, I have tried various versions of what you suggested
but just keep getting text after the entry number:

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\\BookData\\Editor\\Entries{Mergefield EntryID}" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}.doc" }

69703{ INCLUDETEXT "Q:\BookData\Editor\Entries{Mergefield EntryID}" }

Should I omit anything from the code?


"Graham Mayor" wrote:

You could use

{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}"}
OR
{INCLUDETEXT "D:\\Path\\{Mergefield EntryID}.doc"}

Depending on what is in the EntryID field

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Primus" wrote in message
...
I have a my data source for mailing customers and once merged the «EntryID»
show ##### which is the customers unique .doc file name.

What I need to then get word to do is instead of showing this number is to
find the relating .doc file and insert the text from it.

Is this possible?



.


.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting a field result in Word DeeDeeCee Mailmerge 1 August 20th 09 01:31 AM
limiting mailmerge result gtiporter Mailmerge 2 December 11th 08 07:20 PM
Can you insert a mailmerge field but not print it? sonja Mailmerge 1 December 9th 07 06:30 AM
copy a field result into a footer of a document Anne Goss Microsoft Word Help 9 July 11th 07 01:24 PM
Result in form field to generate comment in next field Phil Coates Microsoft Word Help 2 November 2nd 05 08:16 AM


All times are GMT +1. The time now is 10:48 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"