Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
In a mail merge document, I want to check if a merge field contains the word
"and," then insert plural text if it does, or singular text if it doesn't. I've tried the following, but it does not seem to work, even though the help files say that wildcards can be used: { IF {MERGEFIELD} = "* and *" "plural text" "singular text" } Anyone have suggestions? Todd Weekley |
#2
![]() |
|||
|
|||
![]()
Hi Todd,
AFAIK, the only practical way of doing this is if you know exactly where the ' and ' string will occur, then use '?' as the wildcard for each preceding character. Alternatively, if you know the approximate position, you could nest multiple IF tests covering all possibilities - Word will let you nest up to 20 .... Cheers "TWeekley" wrote in message ... In a mail merge document, I want to check if a merge field contains the word "and," then insert plural text if it does, or singular text if it doesn't. I've tried the following, but it does not seem to work, even though the help files say that wildcards can be used: { IF {MERGEFIELD} = "* and *" "plural text" "singular text" } Anyone have suggestions? Todd Weekley |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Printing multiple copies, multiple pages to a sheet? | Microsoft Word Help | |||
text with multiple fonts inserted into document with multiple columns? | New Users | |||
How do I open multiple Word 2003 files to display on dual monitors | Microsoft Word Help | |||
how do i stop wd from opening multiple applications for mutl-docs. | Microsoft Word Help | |||
Multiple docs open multiple words | New Users |