I am using the following to open up a word document so the user can type information into it. When they are done, they save the document and then exit. Winword.exe is still running after the first document and as such causes the program to crash when it tries the 2nd time. How can I completely close the document and the word application?
'-- START UP WORD
Dim wdApp As Word.Application
Dim wDoc As Word.Document
'-- TEMPLATE NAME
Dim strDocName As String
strDocName = "c:\transcriptions\template3"
Set wdApp = New Word.Application
Set wDoc = wdApp.Documents.Open(strDocName)
'-- SHOW WORD DOC
wdApp.Visible = True
Thanks,
Shannan
'-- START UP WORD
Dim wdApp As Word.Application
Dim wDoc As Word.Document
'-- TEMPLATE NAME
Dim strDocName As String
strDocName = "c:\transcriptions\template3"
Set wdApp = New Word.Application
Set wDoc = wdApp.Documents.Open(strDocName)
'-- SHOW WORD DOC
wdApp.Visible = True
Thanks,
Shannan