Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Tom Bean Tom Bean is offline
external usenet poster
 
Posts: 15
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Tom Bean Tom Bean is offline
external usenet poster
 
Posts: 15
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Tom Bean Tom Bean is offline
external usenet poster
 
Posts: 15
Default 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

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I conditionally merge based on a data value? wayneb Mailmerge 1 August 30th 06 04:33 AM
Conditionally include a picture Schorn Mailmerge 4 January 2nd 06 04:01 AM
How to show a drawing conditionally ThomasAJ Mailmerge 2 November 13th 05 11:49 PM
Using the IF-THEN function to conditionally add picture? jco Mailmerge 2 September 23rd 05 08:44 PM
conditionally merge a form Robert Reed Mailmerge 3 January 16th 05 04:33 PM


All times are GMT +1. The time now is 04:28 PM.

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"