Launching a word document

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top