>Thanks. That does allow the user to edit the document, but it doesn't stop him from closing Word. I would like to intercept Word before it is closed so that the VFP application can control printing and restore settings. Users always seem to change settings and some of those changes can cause Word to hang the next time the application needs it.
Try to hook into Word's events. The technique was discussed here before in Cetin Basoz and Marcia Akins messages.
If it's not broken, fix it until it is.
My Blog