Microsoft
Software
Hardware
Network
Question : Mail Merge from Excel - Format Percent using Switches
I am creating Statements from an Excel worksheet in Microsoft Word using a mail merge. I have a column of percentages in Excel formated as Percentage with 2 decimal places. When I merge the field into Word, 2% shows as .02. I tried playing with the field codes and created { ={MERGEFIELD Double_Points_Rate } *100 \# "0.0%"} (and various permutations thereof) but it either persists in displaying the .02, or displays 0% or gives me a syntax error.
How do I create the field (what steps do I take) so that my percentages look like 1% or 1.5%?
Answer : Mail Merge from Excel - Format Percent using Switches
Here is my final code which works great!
{={ MERGEFIELD Double_Points_Rate} *100 \# 0.0;}%
Data Result
0% 0.0%
1% 1.0%
1.5% 1.5%
Random Solutions
Any quick way to traverse through labels/textbox on a report design page?
Windows 7 + Visual Basic 2008 + COM libraries
Need help with combobox not selecting the correct record
How do I change the height of a decorative border box conditionally on the contents of a text box within the box
Report failure notification in SQL REPORTING
Find text in file, and find next lines
DateTimePicker to DateTime SQL Server format
TCP/IP Send/Recieve Files
FSMO Roles
can I partition Win 7 xp mode drive