I have a Word 2010 document which is a mail merge using an Excel spreadsheet. One of the merge fields is HR which relates to a heart rate. In the MailMerge document, which works perfectly the field looks like this (I did use Ctrl and F9 to insert { but in this forum I have had to type the characters):
{MERGEFIELD HR}
When the MailMerge is completed the correct value is displayed.However, I would like to use a conditional format that says if the HR is above 85 then format the font bold and red. To achieve this I found the following (in this example the first MERGEFIELD HR is set to bold and red, the second not bold and black but it does not display in this forum post);
{IF {MERGEFIELD HR} > 85 {MERGEFIELD HR} {MERGEFIELD HR} }
However, no matter how I try to get this to work, all I get is an error below:
Error! Unknown op code for conditional.
I have tried using spaces, removing spaces, adding \*CHARFORMAT but to no avail. The merge field is in a cell of a table in Word, so does this make a difference?
{MERGEFIELD HR}
When the MailMerge is completed the correct value is displayed.However, I would like to use a conditional format that says if the HR is above 85 then format the font bold and red. To achieve this I found the following (in this example the first MERGEFIELD HR is set to bold and red, the second not bold and black but it does not display in this forum post);
{IF {MERGEFIELD HR} > 85 {MERGEFIELD HR} {MERGEFIELD HR} }
However, no matter how I try to get this to work, all I get is an error below:
Error! Unknown op code for conditional.
I have tried using spaces, removing spaces, adding \*CHARFORMAT but to no avail. The merge field is in a cell of a table in Word, so does this make a difference?