View Single Post
 
Old 07-04-2015, 09:50 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit 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

The QUOTE field simply encompasses the remainder, making them easier to manage as a group and, more importantly in the mailmerge context, unlinks the others during the merge so you end up with only the results, not an active field.

The SET field creates a bookmark, named 'Loan' in the latest iteration, enabling that bookmark to be used in the main expression rather than having to repeat the MERGEFIELD for each component.

Far less transparent, however, is the main expression's construction. What I've done is to take advantage of the fact a numeric picture switch takes three parameters: - +ve;-ve;0 and I've leveraged those to hold secondary field expressions and text. In fact, I've even nested a tertiary set of fields inside the secondary field's numeric picture switch. This kind of thing isn't anything you're likely to find documented anywhere other than in my Microsoft Word Field Maths Tutorial, available at:
http://windowssecrets.com/forums/sho...Maths-Tutorial
or:
http://www.gmayor.com/downloads.htm#Third_party
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote