Currency dropping zeros in mail merge

Posted on 2005-05-07
Last Modified: 2008-02-01
I am doing a mail merge in word from a excel spreadsheet. In the spreadsheet there are cells with dollar values. When I do the merge the trailing zeros are dropped. For example in excel the cell contains $100.00 or $100.10 when I do the merge I only see $100 or $100.1  How do I get the trailing zeros?
Question by:whiwex
    LVL 19

    Expert Comment

    Use formatcuurency function, as in:

    oldvalue = 100.1
    oldvalue = FormatCurrency(oldvalue, 2)
    MsgBox oldvalue

    LVL 76

    Accepted Solution

    I think you're a bit off topic.

    You need to include a picture switch in the mailmerge field:

    {MERGEFIELD number \# $####0.00}

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now