Macro or code to save file with name of field in mail merge - Word 2010
Posted on 2012-08-22
I have a Word merge form (merge.docx) that contains a field called "company", along with a lot of other fields.
Let's say the data file (mergedata.docx) has a company is called Testco (name will change often).
For the above example with company=Testco, I would like a macro to open the main merge document (merge.docx), merge all the records, then save the merged file as Testco.docx.
That's my preferred way of doing it.
If that can't be done, can the macro/code prompt me for the name to save the file?