Reputation: 1271
How can I format my MERGEFIELD to show a suffix for Kilometers, i.e. "kms".
{MERGEFIELD distance /# kms}
doesn't work. It results only in kms
and omits the data.
Upvotes: 0
Views: 775
Reputation: 3175
The \#
switch is a numeric format switch that requires a formatting code in double quotation marks. Once the formatting code is in place, the additional text can be added in single quotation marks. As such, this code:
{ MERGEFIELD Distance \# "# 'kms' " }
will append "kms" to any raw number (no commas, decimal point, or other formatting). To see a comprehensive explanation of formatting field codes that includes additional formatting options, please refer to Insert and format field codes in Word 2010 (or the equivalent article for other versions of Word).
Upvotes: 1