> Dirk - Thanks!
>
> One additional question, If I find it is running can I issue a quit
> command (oWord.Quit) to close the running instance before continuing
> my code? Will this allow the user to either save the current
> document or will it just close Word without offering a save as dialog?
I just tested it with the following code:
Dim oWord As Object
On Error Resume Next
Set oWord = GetObject(, "Word.Application")
If Err.Number = 0 Then
oWord.Activate
oWord.Quit
Set oWord = Nothing
End If
Word prompted me to save the document. However, the dialog box also
allowed me to Cancel the save, so you may need to program around that.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
JWS315 - 28 Jul 2005 21:04 GMT
Great - I will give this a try - thanks for the Help! Jerry
> > Dirk - Thanks!
> >
[quoted text clipped - 17 lines]
> Word prompted me to save the document. However, the dialog box also
> allowed me to Cancel the save, so you may need to program around that.