I'm trying to automate word (from Access) using what I think is standard code.
Dim wordApp As Word.Application
Dim wordDoc As Word.Document
Set wordApp = New Word.Application
wordApp.Visible = False
Set wordDoc = wordApp.Documents.Add
wordApp.Visible = True
Set wordApp = Nothing
Set wordDoc = Nothing
This works fine, but if there's another word document open when this is run and then you try to close the vba created document it brings up the message saying the Normal.dot template is in use by another user, and that changes have been made to the global template.
I don't understand how the above code is making changes to the Normal.dot template?
Is there a better method I should be using to automate? (I've also used the late-binding CreateObject and it has the same effect)
I appreciate any help or insights.
Dim wordApp As Word.Application
Dim wordDoc As Word.Document
Set wordApp = New Word.Application
wordApp.Visible = False
Set wordDoc = wordApp.Documents.Add
wordApp.Visible = True
Set wordApp = Nothing
Set wordDoc = Nothing
This works fine, but if there's another word document open when this is run and then you try to close the vba created document it brings up the message saying the Normal.dot template is in use by another user, and that changes have been made to the global template.
I don't understand how the above code is making changes to the Normal.dot template?
Is there a better method I should be using to automate? (I've also used the late-binding CreateObject and it has the same effect)
I appreciate any help or insights.