Thread: MERGEFORMAT
View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default MERGEFORMAT

It is not \MERGEFORMAT but \*MERGEFORMAT! - in any case the syntax of your
field construction is wrong. It should be

{IF {MERGEFIELD "REG_CODE"} = "LAB" "{INCLUDETEXT "C:\\DB\\LAB.doc"
\*MERGEFORMAT }" ""}
Press Ctrl+F9 for each field bracket pair {} and type in the rest. Toggle
the display ALT+F9 and update the field.F9

--

Graham Mayor - Word MVP

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



wrote:
Hi all,

Is there an easy way to add this code to a word doc, I am having to
type similar code manually everytime a new code has been created. I
can't copy and paste as I have to press CTRL + F9 for "{}"

{IF {MERGEFIELD"REG_CODE"}="LAB"{INCLUDETEXT "C:\\DB\\LAB.doc" \*
MERGEFORMAT}""\MERGEFORMAT}

Thanks for you help.
A.