View Single Post
  #8   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
 
Posts: n/a
Default ExcelWord Mail merge transfers 16 digits when Excel shows onl

Both sets of {} need to be the sort you insert using ctrl-F9. Everything
else is plain text you can type in the usual way. If you just used plain
text braces around the mergefield you will get a syntax error.

Peter Jamieson

"John Richmond, Watford UK"
wrote in message
...
Peter,
I did that exactly and it came up with a syntax error.


"Peter Jamieson" wrote:

You cn get the percentage using a nested mergefield, e.g.

{ ={ MERGEFIELD mypercentage }*100 \#0.0 }

Peter Jamieson
"John Richmond, Watford UK"
wrote in message
...
Thanks.
It worked except for % where I had to be content with an output with a
decimal point viz: .79% This came as a result of using a format of
\#.00%.
The % data itself is, of course, all stored as numbers 1 but
displayed
in
Excel as a %ge. I'm not changing that so will be happy with what I've
got.

Many thanks

John Richmond

"Peter Jamieson" wrote:

The simplest way to revert to previous behaviour is generally to check
Word|Tools|Options|General|Confirm conversion at Open, re-connect to
your
Excel data source and choose the DDE option when offered. I suspect
you
must
have been using that in Word XP as you would probably be having the
same
problems.

Alternatively, you can use "formatting switches" in the fields, e.g.
use
Alt-F9 to show

{ MERGEFIELD mynumber \*Mergeformat }

and change it to

{ MERGEFIELD mynumber \#0.00 }

(you can leave the Mergeformat in there if you want)

The formats are documented in Word Help.

Peter Jamieson
"John Richmond, Watford UK" John Richmond, Watford
wrote in message
...
In producing reports by mailmerge from Excel into Word, an Excel
cell
holding
a calculated value formatted to display as 3.45 will be shown as
3.449993782999200000. Even cells carefully formatted to integers
e.g 3
will
often transfer to 3.0000000000000001. Percentages such as 78% get
transferred as 0.798745300322220 Only if the values have been
typed
in
will
the mail merge show the correct number.

This did not happen with previous versions of Word and Excel, where
the
number was transferred as formatted in Excel. Is there any way of
putting
this right?

Versions in use are Word 2002 SP3 and Excel 2002 SP3