darkojones
Programmer
Hi everyone. I'm hoping you can help me.
I've got a word document template with IF statements and MergeFields. Our templates have IF statements in the format
{ IF { MERGEFIELD Contact_Ref } = 6825508 "True" "False" }
However, for some reason its been decided that all our templates must now have IF statements in the format.
{ IF "{ MERGEFIELD Contact_Ref }" = 6825508 "True" "False" }
With quotation marks around the first argument of the IF statements.
I've been playing around with a VBA Macro using the Word Find and Replace functions and regular expressions to match the pattern but I've run in to problems because there is no way to match a Mergefield.
What I'd like to know is if anyone else has had this problem? Is it actually possible ?
Any thoughts on how to do it would be greatfully received.
Andy
I've got a word document template with IF statements and MergeFields. Our templates have IF statements in the format
{ IF { MERGEFIELD Contact_Ref } = 6825508 "True" "False" }
However, for some reason its been decided that all our templates must now have IF statements in the format.
{ IF "{ MERGEFIELD Contact_Ref }" = 6825508 "True" "False" }
With quotation marks around the first argument of the IF statements.
I've been playing around with a VBA Macro using the Word Find and Replace functions and regular expressions to match the pattern but I've run in to problems because there is no way to match a Mergefield.
What I'd like to know is if anyone else has had this problem? Is it actually possible ?
Any thoughts on how to do it would be greatfully received.
Andy