Use Mergefield within text in if-field

C

Christine

Hi there!
I'm trying to do set up a mailmerge, where I can insert text as an option
and nest a Mergefield into the text. For example, if somebody booked a hotel,
it should say "we reserved a <single or double> room from <time frame> for
you. Otherwise it's blank.
Is this possible?
Thanks, Christine
 
D

Doug Robbins - Word MVP

Yes,

{ IF { MERGEFIELD somemergefield } = [somecondition] "We reserved a { IF {
MERGEFIELD roomtype } = 1 single double } from { MERGEFIELD arrival } to {
MERGEFIELD departure } for you." "" }

Each pair of field delimiters must be inserted using Ctrl+F9. Use Alt+F9 to
toggle of the display of the field codes.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top