Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Conditionally IncludeText
I am trying to create a mail merge document that conditionally includes
several other documents. I have been able to do this by using merge fields like: { IF { Condition } "" "{ INCLUDETEXT "C:\\Path\\Include1.doc" }"}. Unfortunately, all the included documents have different page set up so I really need a Section Break before the INCLUDETEXT field like the following: { IF { Condition } "" "=====Section Break (next page)===== { INCLUDETEXT "C:\\Path\\Include1.doc" }"}. When I string multiple of these IF fields together to include other documents, the Section Break is converted to a Page Break. This causes the page set up for the included document to be lost. If I insert a paragraph mark (enter) between the Section Break and the INCLUDETEXT field, the Section Break is not converted to a Page Break but I get a blank line for every document that is not included. Is there another way to accomplish conditionally including multiple documents to retain their page set up without inserting blank lines? Thanks, Tom |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Conditionally IncludeText
Hi Tom,
Have you tried adding a lock switch (ie '\!') to your INCLUDETEXT field (eg {IF{Condition} "" "{INCLUDETEXT "C:\\Path\\Include1.doc" \!}"})? I'm not sure if that will work, but its worth a try. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Tom Bean" wrote in message ... I am trying to create a mail merge document that conditionally includes several other documents. I have been able to do this by using merge fields like: { IF { Condition } "" "{ INCLUDETEXT "C:\\Path\\Include1.doc" }"}. Unfortunately, all the included documents have different page set up so I really need a Section Break before the INCLUDETEXT field like the following: { IF { Condition } "" "=====Section Break (next page)===== { INCLUDETEXT "C:\\Path\\Include1.doc" }"}. When I string multiple of these IF fields together to include other documents, the Section Break is converted to a Page Break. This causes the page set up for the included document to be lost. If I insert a paragraph mark (enter) between the Section Break and the INCLUDETEXT field, the Section Break is not converted to a Page Break but I get a blank line for every document that is not included. Is there another way to accomplish conditionally including multiple documents to retain their page set up without inserting blank lines? Thanks, Tom |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Conditionally IncludeText
macropod,
As I understand the lock switch, I don't believe it will work for me because the documents contain fields that need to be updated when they are included in the main document. After further investigation, even though the break text changes from "Section Break" to "Paragraph Break", the paragraph breaks seem to retain the different page setup. Also, not all on the section breaks change to paragraph breaks. I'm not certain if the representation in the document matches what Word really does with the breaks. Is it possible that a paragraph break is really a section break even though it says it is a "Paragraph Break"? Tom "macropod" wrote in message ... Hi Tom, Have you tried adding a lock switch (ie '\!') to your INCLUDETEXT field (eg {IF{Condition} "" "{INCLUDETEXT "C:\\Path\\Include1.doc" \!}"})? I'm not sure if that will work, but its worth a try. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Tom Bean" wrote in message ... I am trying to create a mail merge document that conditionally includes several other documents. I have been able to do this by using merge fields like: { IF { Condition } "" "{ INCLUDETEXT "C:\\Path\\Include1.doc" }"}. Unfortunately, all the included documents have different page set up so I really need a Section Break before the INCLUDETEXT field like the following: { IF { Condition } "" "=====Section Break (next page)===== { INCLUDETEXT "C:\\Path\\Include1.doc" }"}. When I string multiple of these IF fields together to include other documents, the Section Break is converted to a Page Break. This causes the page set up for the included document to be lost. If I insert a paragraph mark (enter) between the Section Break and the INCLUDETEXT field, the Section Break is not converted to a Page Break but I get a blank line for every document that is not included. Is there another way to accomplish conditionally including multiple documents to retain their page set up without inserting blank lines? Thanks, Tom |
#4
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Conditionally IncludeText
Hi Tom,
With Section breaks that follow the end of a paragraph, it sometimes happens that the Section break becomes invisible. This is usually only the case if the paragraph break is at or near the end of a line. Is that what you're seeing? Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Tom Bean" wrote in message ... macropod, As I understand the lock switch, I don't believe it will work for me because the documents contain fields that need to be updated when they are included in the main document. After further investigation, even though the break text changes from "Section Break" to "Paragraph Break", the paragraph breaks seem to retain the different page setup. Also, not all on the section breaks change to paragraph breaks. I'm not certain if the representation in the document matches what Word really does with the breaks. Is it possible that a paragraph break is really a section break even though it says it is a "Paragraph Break"? Tom "macropod" wrote in message ... Hi Tom, Have you tried adding a lock switch (ie '\!') to your INCLUDETEXT field (eg {IF{Condition} "" "{INCLUDETEXT "C:\\Path\\Include1.doc" \!}"})? I'm not sure if that will work, but its worth a try. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Tom Bean" wrote in message ... I am trying to create a mail merge document that conditionally includes several other documents. I have been able to do this by using merge fields like: { IF { Condition } "" "{ INCLUDETEXT "C:\\Path\\Include1.doc" }"}. Unfortunately, all the included documents have different page set up so I really need a Section Break before the INCLUDETEXT field like the following: { IF { Condition } "" "=====Section Break (next page)===== { INCLUDETEXT "C:\\Path\\Include1.doc" }"}. When I string multiple of these IF fields together to include other documents, the Section Break is converted to a Page Break. This causes the page set up for the included document to be lost. If I insert a paragraph mark (enter) between the Section Break and the INCLUDETEXT field, the Section Break is not converted to a Page Break but I get a blank line for every document that is not included. Is there another way to accomplish conditionally including multiple documents to retain their page set up without inserting blank lines? Thanks, Tom |
#5
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Conditionally IncludeText
macropod,
No, the section break is not becoming invisible. It is being replaced with "Paragraph Break" but it still seems to behave as a section break. That is, the page set up margins are maintained as they were when the break was a Section Break". Thanks, Tom "macropod" wrote in message ... Hi Tom, With Section breaks that follow the end of a paragraph, it sometimes happens that the Section break becomes invisible. This is usually only the case if the paragraph break is at or near the end of a line. Is that what you're seeing? Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Tom Bean" wrote in message ... macropod, As I understand the lock switch, I don't believe it will work for me because the documents contain fields that need to be updated when they are included in the main document. After further investigation, even though the break text changes from "Section Break" to "Paragraph Break", the paragraph breaks seem to retain the different page setup. Also, not all on the section breaks change to paragraph breaks. I'm not certain if the representation in the document matches what Word really does with the breaks. Is it possible that a paragraph break is really a section break even though it says it is a "Paragraph Break"? Tom "macropod" wrote in message ... Hi Tom, Have you tried adding a lock switch (ie '\!') to your INCLUDETEXT field (eg {IF{Condition} "" "{INCLUDETEXT "C:\\Path\\Include1.doc" \!}"})? I'm not sure if that will work, but its worth a try. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Tom Bean" wrote in message ... I am trying to create a mail merge document that conditionally includes several other documents. I have been able to do this by using merge fields like: { IF { Condition } "" "{ INCLUDETEXT "C:\\Path\\Include1.doc" }"}. Unfortunately, all the included documents have different page set up so I really need a Section Break before the INCLUDETEXT field like the following: { IF { Condition } "" "=====Section Break (next page)===== { INCLUDETEXT "C:\\Path\\Include1.doc" }"}. When I string multiple of these IF fields together to include other documents, the Section Break is converted to a Page Break. This causes the page set up for the included document to be lost. If I insert a paragraph mark (enter) between the Section Break and the INCLUDETEXT field, the Section Break is not converted to a Page Break but I get a blank line for every document that is not included. Is there another way to accomplish conditionally including multiple documents to retain their page set up without inserting blank lines? Thanks, Tom |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I conditionally merge based on a data value? | Mailmerge | |||
Conditionally include a picture | Mailmerge | |||
How to show a drawing conditionally | Mailmerge | |||
Using the IF-THEN function to conditionally add picture? | Mailmerge | |||
conditionally merge a form | Mailmerge |