Thread: [Solved] Copy / Print Merge code
View Single Post
 
Old 06-05-2014, 06:46 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit 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

OK, you're copying more than just the mergefields - you're also copying IF fields that contain them. On their own, the mergefields will look like «LVMass». That's what you might also see when you copy one that's embedded in an IF field, but what you'll see in that case really depends on what the IF field is doing.

As for printing out the field codes, all that requires is checking Word's 'print field codes instead of their values' option.

I missed would question about comments before - that can be done in either of two ways:
{IF{ MERGEFIELD LVMass } < 200 { MERGEFIELD LVMass \# "0.00"} { MERGEFIELD LVMass \# "0.00"} {SET % Add comments here}}
or
{IF{ MERGEFIELD LVMass } < 200 { MERGEFIELD LVMass \# "0.00" } { MERGEFIELD LVMass \# "0.00"} /"Add Comments here"}
The first version merely uses a SET field to add some comments to a % bookmark, which you can re-use as often as you like. The second version, though simpler, relies on an undocumented technique that can't be guaranteed to work in future Word versions.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote