PDA

View Full Version : deleting paragraphs if no data during mail merge in word



jdashm
01-20-2016, 05:02 PM
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:
15229

gmayor
01-21-2016, 12:17 AM
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.

15233

jdashm
01-21-2016, 01:31 AM
Thanks that did it! The trick was actually running the merge to see the results. Again many thanks!