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
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