I have a VB.NET program which opens word documents, performs a mail merge and then saves them to a different location. I am now attempting to allow the user to decide when they want to save the document via adding a button to the ribbon in word which calls a macro to do this.
I've created a docm template which adds the button to the ribbon in Word 2007/2010/2013. On attempting to open any doc/docx file however Word will always open it in a new window which lacks the ribbon modification imposed by the template.
I was wondering if anybody knew of a way to programmatically apply a template to an existing document short of opening the docm file and pasting in all the text from the doc/docx file?