Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Rahul Srivastava Rahul Srivastava is offline
external usenet poster
 
Posts: 1
Default Converting the numeric digits to text automatically

Hi

How can i automatically change the digits value in text value . Like if a
input is provide in word thru mail merge as Total value 2000$ that i want to
automatically have it coverted in text in another place in the same document
as "Two thousand" dollars.

Kindly help me in providing the answer .
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Converting the numeric digits to text automatically

If you have a mergefield called amount containing (say) 2000 you can use

{ MERGEFIELD amount \*cardtext }

to produce

"two thousand"

If amount actually contains "2000$","$2000", "$2,000.00" etc. the result
should be the same, i.e. you need to add the text "dollars" yourself.

For larger numbers cardtext produces what I believe is the American English
version of the number, e.g.

1234 is "one thousand two hundred thirty-four"whereas e.g. in British
English it would typically be "one thousand two hundred and thirty-four"

For really large numbers you might have to do a bit more.

Another switch, \*dollartext, turns 1234.56 into "one thousand two hundred
thirty-four and 56/100"

Peter Jamieson

"Rahul Srivastava" Rahul wrote in
message ...
Hi

How can i automatically change the digits value in text value . Like if a
input is provide in word thru mail merge as Total value 2000$ that i want
to
automatically have it coverted in text in another place in the same
document
as "Two thousand" dollars.

Kindly help me in providing the answer .



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Header with picture or text box Scott Page Layout 15 April 28th 23 02:52 AM
How do I get text in a header (table) to automatically repeat beaner Microsoft Word Help 1 January 30th 06 11:00 PM
Word applies direct format on File open Uriel Microsoft Word Help 16 November 27th 05 07:22 PM
when converting text box to frame, data from main doc moves into f Tony Logan Microsoft Word Help 1 September 8th 05 04:54 PM
Automatically changing text when another text is changed Melissa S Microsoft Word Help 1 December 29th 04 08:43 PM


All times are GMT +1. The time now is 08:34 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"