Try this it check if wors is already running first
Dim strFileName As String, oWord As Word.Application, WordWasNotRunning As Boolean,oDoc As Word.Document
strFileName = "XXX.doc"
On Error Resume Next
Set oWord = GetObject(, "Word.application")
If Err Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.