Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-23-2013, 04:52 AM
macropod's Avatar
macropod macropod is offline in 2013, cannot format 4 dec places in Word Document Windows 7 32bit in 2013, cannot format 4 dec places in Word Document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A mergefield coded as {Mergefield InterestRate \# 0.0000} will show the data to 4 decimal places. If you're dealing with percentage data, though, you may need to multiply the values by 100 to get the results you're after.

To control the percentage formatting in Word, rather than at the data source, add a formula and numeric picture switch to the mergefield, as follows:
• select your mergefield, which will look something like «InterestRate»;
• press Ctrl-F9 to wrap another field around it, thus { «InterestRate» };
• edit the field so that you get {=«InterestRate»*100 \# 0.00%};
• position the cursor anywhere in this field and press F9 to update it;
• run your mailmerge.

Note1: the precision of the displayed value is controlled by the '0.00'. You can use anything from '0' to '0.000000000000000'.

Note2: The field brace pairs (ie '{ }') for the above example are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message. Likewise, you can't type or copy & paste the chevrons (ie '« »') - they're part of the actual mergefields, which you can insert from the mailmerge toolbar.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Documents appear in two places Drjh68 Word 1 08-25-2013 03:19 PM
Word 2013 file opens as WD00000x and in 97 - 2003 format duncanwil Word 0 07-23-2013 10:51 PM
Format/Size of the Word Document colinito Word 2 04-25-2013 01:33 AM
in 2013, cannot format 4 dec places in Word Document format a Microsoft Word Document, and need your help! taylorr Word 1 02-16-2013 01:54 AM
Which ODF/ .odt version is word 2010, 2013 preview & eventually 2013 full using? semiotically Word 8 11-08-2012 05:44 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft