Hi,
I have an Access database that interacts with a number of Word templates, fills in some bookmarks and presents the document to the user. This all works fine, however what happens is that when the database creates a document from the template and displays it to the user, the original ‘template’ gets marked as ‘Read-Only’ until the user closes the document that was generated on their computer. This is the code I’m using to create a document from the template:
Set wdapp = CreateObject(“Word.Application”) ‘Create an instance of Word
wdapp.Documents.Add Template:=TemplatePath & TemplateName ‘Open the template the user has chosen
I’m using this method because I want the user to create a ‘version’ of the template, not the template itself.
I also set a few variables to nothing at the end of the sub:
Set wdapp = Nothing
Set ActiveTemplate = Nothing
Why would the template itself be set to read only if I’m just opening a document from it?
Hope someone can help!