Trying to run a mail merge and have options or code delete numbered paragraphs where the merged field returns no value.
Example of mergefield code:
Attachment 15229
Printable View
Trying to run a mail merge and have options or code delete numbered paragraphs where the merged field returns no value.
Example of mergefield code:
Attachment 15229
Actually what you need to do is INSERT the paragraph when the field has value. The field will presumably have a monetary amount or zero or nothing. The following assumes a monetary amount or nothing. The plan therefore is to add the condition to the end of the previous paragraph. In autonumbered paragraphs the sequence will look a little odd - as shown in the screenshot, but it all works itself out and the numbering will be correct when the merge is run.
Attachment 15233
Thanks that did it! The trick was actually running the merge to see the results. Again many thanks!