Thread: [Solved] IF Statement in Word
View Single Post
 
Old 02-24-2018, 09:44 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

From your description it sounds like you have added the conditional field AFTER the original merge field instead of REPLACING it.

«Request_Staff_Person»{IF{MERGEFIELD Request_Staff_Person}= "Mickey Mouse" "Minnie Mouse"}

The field goes INSIDE the conditional field i.e.

{IF «Request_Staff_Person»= "Mickey Mouse" "Minnie Mouse"}

or with field codes toggled (ALT+F9)

{IF{MERGEFIELD Request_Staff_Person}= "Mickey Mouse" "Minnie Mouse"}
In the case of the latter all bracket pairs are inserted with CTRL+F9

Or you can insert it from the mailmerge tab of the ribbon (Rules)

__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote