I am trying to automate a mailmerge from VB by calling the Word Application object and then using VBA to perform the merge.
Everything works fine until I get to the code to .OpenHeaderSource and .OpenDataSource. When my application hits this code, a dialog box pops up in Microsoft Word and asks for the field delimeters.
How can I set the field delimeters in code and supress this dialog box from popping up?
Everything works fine until I get to the code to .OpenHeaderSource and .OpenDataSource. When my application hits this code, a dialog box pops up in Microsoft Word and asks for the field delimeters.
How can I set the field delimeters in code and supress this dialog box from popping up?