Currency formatting

P

PaddyWack

I have a project that I maintain for a client.

It uses Word merge documents that have dynamic text based on user
input.

The problem is that when merge fields are formatted as currency and the
dynamic text moves the fields to the right margin, the "$" is often
separated from the value.

So the client gets output with "$" at the right margin and the value
starting on the next line.

Any ideas?
 
G

Graham Mayor

Are you using a currency switch on the field eg

{Mergefield Fieldname \# "$,0.00"}

The field should then stay together.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Doug Robbins - Word MVP

How is the amount being formatted as currency. If you add the following
formatting switch to the merge field, you will not get a break between the $
and the amount.

\# "$,0.00"

If you want a space between the $ and the amount, you should use a
not-breaking space (Ctrl+Shift+Space), either in the formatting switch, or
if the $ is entered directly into the document, between it and the merge
field.

--
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
 
P

PaddyWack

Was using {MERGEFIELD XYZ \# $#,###}.

Making that {MERGEFIELD XYZ \# $,###} seems to have done the trick, s
long as that handles values >= $1,000.

Thanks. Now I can get out of word processor mode and go back t
software development.
 
G

Graham Mayor

If you only want whole numbers, the correct switch would be

{MERGEFIELD XYZ \# "$,0" }

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - 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