![]() |
#1
|
||||
|
||||
![]()
Hi all, in a mail merge with excel as its data source, the currency amounts in the main document must be written in words and in numbers. I copied the code:
{QUOTE {ASK Val "What is the amount?"}"{=INT(Val) \* CardText} dollar{=INT(Val)-1 \# "s;s;"}{IF{=MOD(Val,1) \# 0.00}> 0 " and {=MOD(Val,1)*100 \# 0 \* CardText} cent{=INT(MOD(Val,1)*100-1) \# "s;s;"}"}"} From: How to spell out numbers in Microsoft Word - Microsoft Community that Mr. Paul Edstein wrote. I substituted the "What is the amount?" with the appropriate mergefield {MERGEFIELD Grand Total} then changed the dollar to pesos because that is our currency. When I pressed F9, I got the following: I don't know what information to enter in the box so I just pressed OK. Another error message in the main document came out like this: ‘!Undefined Bookmark, VAL dollar!Undefined Bookmark, VAL>0 ’. Kindly point out where I erred and what to enter in the above box. The amounts in the data do not run to hundreds of thousands so I prefer this code than macro. Thank you. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mail Merge - Covering Letter with multiple additional pages not always the same amount | lsirobinson | Mail Merge | 3 | 10-11-2015 11:33 PM |
Mail merge how to link mail merge field value to a column heading | dsummers | Mail Merge | 1 | 05-08-2014 02:59 PM |
Mail Merge only sends to a select amount of recipients. | Lb145 | Outlook | 2 | 05-07-2014 02:06 AM |
Mail Merge only sends to a select amount of recipients. | Lb145 | Mail Merge | 11 | 05-06-2014 03:15 PM |
![]() |
don0712 | Mail Merge | 1 | 01-29-2013 06:53 PM |