Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing a Word App from Access

Status
Not open for further replies.

bbitzer

Programmer
Feb 4, 2003
8
0
0
US
I recently made use of code that uses a Word Application to check the spelling of the labels on each of my Access forms. I open an instance of Word to run

Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = False

I then cycle through the forms and label controls and use Word to check the spelling. However, the when I use the code:

wrdApp.Application.Quit
Set wrdApp = Nothing

MS Word is still running as a process. How can I quit the Word Application without having to use the Task Manager?
 
Try this

Dim oWord As Object

'Do your stuff

oWord.ActiveDocument.SaveAs Path & NewFileName & ".DOC" ' save doc
oWord.Quit 'This will shout down word

Regd

Herman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top