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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminate WINWORD.EXE Process 1

Status
Not open for further replies.

valdosta

MIS
Dec 18, 2002
50
US
Hi,

Everytime I run the following VB program, a WINWORD.EXE process is started. How could I terminate WINWORD.EXE? Thanks in Advance!

Private Sub ModifyWordDocument()

Dim strDocumentPath As String

strDocumentPath = App.Path

OpenDocument strDocumentPath & "\student0.doc"
ReplaceField "test", "exam"
SaveDocumentAs strDocumentPath & "\student1.doc"
CloseDocument

End Sub
 
We probably need to see your CloseDocument procedure!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top