How to I prevent decimal truncation in Word 2003 when a document is auto populated via a Web Service
Posted
by
thomas.loughran
on Programmers
See other posts from Programmers
or by thomas.loughran
Published on 2012-11-14T14:54:00Z
Indexed on
2012/11/14
17:29 UTC
Read the original article
Hit count: 261
I have a document template which is being auto populated via an external web service. The incoming data exists as a currency (e.g. 3.10) but when it is passed into the Word Document template the variable is truncated to remove any trailing 0's. I need the number to always appear with 2 decimals, even if they are both 0's.
This is with the 2003 version of Word, I have not tested with other versions since all of our document templates need to be generated using that version of Word.
I feel like this can be done with a Macro or a VB script but I have a very small amount of time & no experience with these tools - Any help is greatly appreciated!
© Programmers or respective owner