Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Mergefield - carriage return
Hello,
I am trying to go to the next line based on a contidion on a mergefield. I am assuming that it would look like { IF{ MERGEFIELD "Country" } = "" "" CHR(13)} Also how to you insert a mergefield based on a condition on another mergefield? again I am assuming that it would look like { IF{ MERGEFIELD "Field1" } = "" "" { MERGEFIELD "Field2" }} Thank you. Eric |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Mergefield - carriage return
{ IF{ MERGEFIELD "Field1" } = "" Enter
"" { MERGEFIELD "Field2" }} will always give you a blank line Perhaps you really want { IF{ MERGEFIELD "Field1" } = "" "{ MERGEFIELD "Field2" }" "{ MERGEFIELD "Field1" }Enter { MERGEFIELD "Field2" }" } You must use Ctrl+F9 for each pair of field delimiters {} -- 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 "Eric" wrote in message ... Hello, I am trying to go to the next line based on a contidion on a mergefield. I am assuming that it would look like { IF{ MERGEFIELD "Country" } = "" "" CHR(13)} Also how to you insert a mergefield based on a condition on another mergefield? again I am assuming that it would look like { IF{ MERGEFIELD "Field1" } = "" "" { MERGEFIELD "Field2" }} Thank you. Eric |
#3
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Mergefield - carriage return
Hi Doug,
I tried this: { IF{ MERGEFIELD "Country" } = "" "" Enter} but all it does is write Enter... What am I missing? Thank you. Eric "Doug Robbins - Word MVP" wrote in message ... { IF{ MERGEFIELD "Field1" } = "" Enter "" { MERGEFIELD "Field2" }} will always give you a blank line Perhaps you really want { IF{ MERGEFIELD "Field1" } = "" "{ MERGEFIELD "Field2" }" "{ MERGEFIELD "Field1" }Enter { MERGEFIELD "Field2" }" } You must use Ctrl+F9 for each pair of field delimiters {} -- 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 "Eric" wrote in message ... Hello, I am trying to go to the next line based on a contidion on a mergefield. I am assuming that it would look like { IF{ MERGEFIELD "Country" } = "" "" CHR(13)} Also how to you insert a mergefield based on a condition on another mergefield? again I am assuming that it would look like { IF{ MERGEFIELD "Field1" } = "" "" { MERGEFIELD "Field2" }} Thank you. Eric |
#4
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Mergefield - carriage return
I got it ... Sorry I didn't realize that Enter meant pressing the Enter
key... It's working now. Thank you. Eric "Eric" wrote in message ... Hi Doug, I tried this: { IF{ MERGEFIELD "Country" } = "" "" Enter} but all it does is write Enter... What am I missing? Thank you. Eric "Doug Robbins - Word MVP" wrote in message ... { IF{ MERGEFIELD "Field1" } = "" Enter "" { MERGEFIELD "Field2" }} will always give you a blank line Perhaps you really want { IF{ MERGEFIELD "Field1" } = "" "{ MERGEFIELD "Field2" }" "{ MERGEFIELD "Field1" }Enter { MERGEFIELD "Field2" }" } You must use Ctrl+F9 for each pair of field delimiters {} -- 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 "Eric" wrote in message ... Hello, I am trying to go to the next line based on a contidion on a mergefield. I am assuming that it would look like { IF{ MERGEFIELD "Country" } = "" "" CHR(13)} Also how to you insert a mergefield based on a condition on another mergefield? again I am assuming that it would look like { IF{ MERGEFIELD "Field1" } = "" "" { MERGEFIELD "Field2" }} Thank you. Eric |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I insert a carriage return in a MERGEFIELD? | Mailmerge | |||
Disable carriage return | Microsoft Word Help | |||
Search and replace hard-line-return character, not carriage return | Microsoft Word Help | |||
Pilcrow (carriage return) won't go away | Tables | |||
Insert carriage return in mergefield statement | Mailmerge |