Nope,
Unfortunatly, because the mergefield is a nested field, word doesn't
allow you to simply do that. In the code I get:
IF MERGEFIELD XXX = MERGEFIELD yyy "lll" "kkk"
{'s are literally used within the top level field as part of the fields
contruct and the mergefields are lost as the .code.text field is not
parsed to incoperate nested fields ... which is my problem :)
Tony Jollans - 10 Nov 2005 20:16 GMT
With field codes displayed you could search for = and replace with (space,
=, space). It wouldn't do any harm to have too many spaces.
If need be you could then hide field codes and replace all (space, =, space)
with = to undo what you changed outside field codes
--
Enjoy,
Tony
Nope,
Unfortunatly, because the mergefield is a nested field, word doesn't
allow you to simply do that. In the code I get:
IF MERGEFIELD XXX = MERGEFIELD yyy "lll" "kkk"
{'s are literally used within the top level field as part of the fields
contruct and the mergefields are lost as the .code.text field is not
parsed to incoperate nested fields ... which is my problem :)
Doug Robbins - Word MVP - 10 Nov 2005 20:46 GMT
If you press Alt+F9 you will get
{ IF { MERGEFIELD XXX }={ MERGEFIELD yyy } "lll" "kkk" }
and when you have the field codes displayed like that, you CAN use Edit
Replace to replace the = with <space>=<space> where <space> represents the
use of the space bar so that the above field code construction will be
transformed to:
{ IF { MERGEFIELD XXX } = { MERGEFIELD yyy } "lll" "kkk" }

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
Nope,
Unfortunatly, because the mergefield is a nested field, word doesn't
allow you to simply do that. In the code I get:
IF MERGEFIELD XXX = MERGEFIELD yyy "lll" "kkk"
{'s are literally used within the top level field as part of the fields
contruct and the mergefields are lost as the .code.text field is not
parsed to incoperate nested fields ... which is my problem :)