In the mail merge feature in Word 2010 how would I print a portion of a field? I have a mergefield called 'termint' with a value of YYYYMM. I want to print only the YYYY portion.
Thanks in advance for any help you can give!
You can do this without changing your data, using field coding:
{=INT({MERGEFIELD termint}/100) \# 0000}
or:
{=INT(«termint»/100) \# 0000}
Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - 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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.