If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Can I have a mail merge rule that "contains" the word and?
Can I toggle the field codes so that instead of basic operators it does
"contains". I am trying to do if address contains and then "members" else "a member" |
#2
|
|||
|
|||
Can I have a mail merge rule that "contains" the word and?
Hi Jennifer
Word string testing capabilities with fields are almost non-existent. You can test whether a string starts or ends with a particular charcter sequence - and even have a defined number of charactres before or after that sequence - but beyond that, testing anything other than numeric data, dates & times is a lost cause. You can certainly have a conditional output for the "a member" and "members" part: {IF{MERGEFIELD MyField}= "MyValue" "a member" "members"} A 'starts with' equivalent would be: {IF{MERGEFIELD MyField}= "MyValue*" "a member" "members"} and an 'ends with' equivalent would be: {IF{MERGEFIELD MyField}= "*MyValue" "a member" "members"} -- Cheers macropod [Microsoft MVP - Word] "JenniferK" wrote in message ... Can I toggle the field codes so that instead of basic operators it does "contains". I am trying to do if address contains and then "members" else "a member" |
Thread Tools | |
Display Modes | |
|
|