I have an application which automates the merge of Word documents and data. I want to check errors before running the merge and one error in particular sometimes occurs as follows:
It is possible for somebody to remove a particular field from the header source and not remove references to that field in the merge document. When I go to execute the merge (or even check the merge), I am shown a dialog box telling me that the Merge Field that was removed is not found in the header source and gives the option of removing it or replacing it.
I do not want this box to appear but rather just remove the field from the document. How could this be acheived? (Using either VBA or VB).
As an alternative, I have noticed the Word sometimes writes an error to the merged document stating "Error! the merge field was not found..." or something similar. I can live with this but I dont want the dialog box to appear.
It is possible for somebody to remove a particular field from the header source and not remove references to that field in the merge document. When I go to execute the merge (or even check the merge), I am shown a dialog box telling me that the Merge Field that was removed is not found in the header source and gives the option of removing it or replacing it.
I do not want this box to appear but rather just remove the field from the document. How could this be acheived? (Using either VBA or VB).
As an alternative, I have noticed the Word sometimes writes an error to the merged document stating "Error! the merge field was not found..." or something similar. I can live with this but I dont want the dialog box to appear.