1

How can I concatenate a space to a mail merge field in Word?

Ideally:

  • The space should be part of the field
  • The space should be omitted if the field is empty

1 Answer 1

2

You are looking for '\f' switch:

\f

Specifies the text to be inserted following the MergeField field if the field is not blank.

and the example:

{ MERGEFIELD CoutesyTitle \f " " }{ MERGEFIELD FirstName \f " " }{ MERGEFIELD LastName }

Results in the following:

  • If all fields are present: Ms. Mindy Martin

  • If FirstName is missing from the data source: Ms. Martin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.