Share via

Help needed with MERGECODE format returning a space

Anonymous
2025-02-27T04:33:03+00:00

Hi All,

I am having an issue with a template for Xero using Mergecodes in Word.

I have contacted Xero but they say they can't see any issue with the template itself and they suggest it code be an issue with Word.

I am using the following code  {MERGEFIELDTaxInclusiveUnitAmount#,##0.00;(#,## 0.00) }.

Somehow this returns a space in the amounts such as: 1,25 1.55 instead of 1,251.55 and (410 1.23) instead of (4101.23).

I can't see anything wrong with the format of the table either.

If anyone has a clue, I would be grateful.

Microsoft 365 and Office | Word | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2025-02-27T06:44:09+00:00

    Your MERGEFIELD should be coded as:

    {MERGEFIELD TaxInclusiveUnitAmount # "#,##0.00;(#,##0.00)"}

    For more mailmerge hints, see: Mailmerge Tips & Tricks

    Was this answer helpful?

    0 comments No comments