A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can I have a mail merge rule that "contains" the word and?



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2009, 06:44 PM posted to microsoft.public.word.mailmerge.fields
JenniferK
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  
Old November 5th, 2009, 12:06 AM posted to microsoft.public.word.mailmerge.fields
macropod[_2_]
external usenet poster
 
Posts: 2,402
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"


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.