J
Jon Petitta
I use this bit of code to create a word object and open a
document.
Dim oApp As word.Application
Set oApp = New word.Application
oApp.Visible = True (or False to run in background)
oApp.Documents.Open ("C:\dir\File.Doc")
....Do whatever to the document
oApp.ActiveDocument.SaveAs ("C:\dir\OtherFile.Doc")
oApp.Application.Quit
document.
Dim oApp As word.Application
Set oApp = New word.Application
oApp.Visible = True (or False to run in background)
oApp.Documents.Open ("C:\dir\File.Doc")
....Do whatever to the document
oApp.ActiveDocument.SaveAs ("C:\dir\OtherFile.Doc")
oApp.Application.Quit