A
Anita Weiler
I have successfully created code to start Word and create
a new document from within Access (code is below).
However, if Word is already running, this code starts a
new instance of Word. How can I check if Word is already
running and activate the existing instance?
The code I'm using is:
Dim wordApp As Object
'Start Word and make it the active window
Set wordApp = CreateObject("word.application")
wordApp.Visible = True
wordApp.Activate
wordApp.Documents.Add
a new document from within Access (code is below).
However, if Word is already running, this code starts a
new instance of Word. How can I check if Word is already
running and activate the existing instance?
The code I'm using is:
Dim wordApp As Object
'Start Word and make it the active window
Set wordApp = CreateObject("word.application")
wordApp.Visible = True
wordApp.Activate
wordApp.Documents.Add