When the user clicks on a button it opens a Word document. After the user closes the document, Word is still running in the background (confirmed by Task Manager). Is there a way to clear Word out of the memory?
This is what my code currents look like:
Private Sub UserDocumentationToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UserDocumentationToolStripMenuItem.Click
Dim appWord As New Word.Application
Dim docWord As New Word.Document
docWord = appWord.Documents.Open(Application.StartupPath & "\user_documentation1.docx", )
appWord.Visible = True
appWord.Activate()
End Sub