Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Adding an includetext command to paragraph
I'm working on a massive mail merge project with a lot of nested if
statements. I have codes like this: {if {mergefield atype1}="HS" {if {mergefield eval1}="1010" {if {mergefield evalvalue1}="90" {includetext c:\\scholar2.doc}""}""}""} and... {if {mergefield atype1}="HS" {includetext c:\\frosh1.doc}""} I'm merging the fields into a template. When I put them in a paragraph, it seems to break the line at the insertion point so that it looks like this: blah blah blah lots of templated text and so on and so forth blah blah mergfield stuff inserted Is there something I can do to prevent that? Same thing happens if I put those two back to back - I still get, essentially, two lines that are broken. Thanks in advance for any advice! Heather |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Adding an includetext command to paragraph
Bookmark the section of the document that you want to include (without the
final paragraph mark if all of it) and include the bookmarked portion. Save the document then in your field construction .... {Includetext "C:\\Path\\Docname.doc" bookmarkname} -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Heather wrote: I'm working on a massive mail merge project with a lot of nested if statements. I have codes like this: {if {mergefield atype1}="HS" {if {mergefield eval1}="1010" {if {mergefield evalvalue1}="90" {includetext c:\\scholar2.doc}""}""}""} and... {if {mergefield atype1}="HS" {includetext c:\\frosh1.doc}""} I'm merging the fields into a template. When I put them in a paragraph, it seems to break the line at the insertion point so that it looks like this: blah blah blah lots of templated text and so on and so forth blah blah mergfield stuff inserted Is there something I can do to prevent that? Same thing happens if I put those two back to back - I still get, essentially, two lines that are broken. Thanks in advance for any advice! Heather |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Adding an includetext command to paragraph
Works like a charm. Thanks so much, Graham!
Heather Graham Mayor wrote: Bookmark the section of the document that you want to include (without the final paragraph mark if all of it) and include the bookmarked portion. Save the document then in your field construction .... {Includetext "C:\\Path\\Docname.doc" bookmarkname} -- |
#4
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Adding an includetext command to paragraph
You are welcome
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Heather wrote: Works like a charm. Thanks so much, Graham! Heather Graham Mayor wrote: Bookmark the section of the document that you want to include (without the final paragraph mark if all of it) and include the bookmarked portion. Save the document then in your field construction .... {Includetext "C:\\Path\\Docname.doc" bookmarkname} -- |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert source texts into multiple files and update automatically | Microsoft Word Help | |||
Word 2003: Can one disable table styles? | Tables | |||
Page breaks in justifed text | Microsoft Word Help | |||
IncludeText gives Error! Not a valid filename on 'refresh' | Formatting Long Documents | |||
I am adding the Heading 1 style to a numbered paragraph to use Heading 1... | New Users |