Hey guys
Firstly, my Access-Word automation is working fine. however, ive run into a new problem now.
(im using templates and bookmarks) - when i export the data from access to my template, the information is not stored in a new document, instead the template is opened and the data inserted into it. and for saving (manual, not automatic) the first option is to overwrite the original template as a .dot file
obviously this is not great - what do i need to do to get my automation to open the template, but insert the data into a new instance of word, and not into the original template file?
the code im using to call and open the template is below:
Dim wrdApp As Object
Dim wrdDoc As Object
Set wrdApp = CreateObject("Word.application")
Set wrdDoc = wrdApp.Documents.Open("C:\Final Yr Project\Templates\ShippingNotice.dot")
what do i need to include / change so that i can get this ?
thanks
Firstly, my Access-Word automation is working fine. however, ive run into a new problem now.
(im using templates and bookmarks) - when i export the data from access to my template, the information is not stored in a new document, instead the template is opened and the data inserted into it. and for saving (manual, not automatic) the first option is to overwrite the original template as a .dot file
obviously this is not great - what do i need to do to get my automation to open the template, but insert the data into a new instance of word, and not into the original template file?
the code im using to call and open the template is below:
Dim wrdApp As Object
Dim wrdDoc As Object
Set wrdApp = CreateObject("Word.application")
Set wrdDoc = wrdApp.Documents.Open("C:\Final Yr Project\Templates\ShippingNotice.dot")
what do i need to include / change so that i can get this ?
thanks