G
Guest
My Access database controls a Mail Merge Job in Word. After generating the
data, Access opens the Word document with these lines of code in a module:
Set objWord = GetObject("G:\Access Projects\MyWordDoc.doc", "Word.Document")
objWord.Application.Visible = True
objWord.RunAutoMacro wdAutoOpen
In the Word document the Sub AutoOpen Prints the mail merge job. My AutoOpen
code ends with ActiveDocument.Close wdDoNotSaveChanges. Unfortunately, I am
left looking at Word with no open document. I want control returned to the
Access database form where I was before. Suggestions appreciated. Someone in
the Word Programming Community referred me here. Thank you.
data, Access opens the Word document with these lines of code in a module:
Set objWord = GetObject("G:\Access Projects\MyWordDoc.doc", "Word.Document")
objWord.Application.Visible = True
objWord.RunAutoMacro wdAutoOpen
In the Word document the Sub AutoOpen Prints the mail merge job. My AutoOpen
code ends with ActiveDocument.Close wdDoNotSaveChanges. Unfortunately, I am
left looking at Word with no open document. I want control returned to the
Access database form where I was before. Suggestions appreciated. Someone in
the Word Programming Community referred me here. Thank you.