Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
JenniferK JenniferK is offline
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default 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"


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
Mail Merge from excel "-" instead of number zero and "()" for neg Kate Mailmerge 2 May 19th 23 08:50 AM
"remove blank lines"+"Mail Merge" John Mailmerge 9 March 5th 09 10:03 PM
Mail Merge "Ask" Rule csinnett Mailmerge 4 December 2nd 08 07:59 PM
Can a Rule include an "or" statement? (Word 2003) Diana Microsoft Word Help 3 October 29th 08 04:09 PM
"mail merge" disappeared from "tools" menu janice Mailmerge 2 June 28th 07 12:44 AM


All times are GMT +1. The time now is 06:06 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"