Bruce Bruen
bbruen at unwired.com.au
Mon Feb 4 14:39:30 CST 2008
On Tuesday 05 February 2008 01:48, jwcolby wrote: > I have a rather elaborate mail merge system in a client's system. ATM I > open the document, merge the date and the user takes over, filling in > things that they need to fill in, then printing and closing the word > instance. It works well enough however I do not control the save of the > document, and very occasionally Word does not close cleanly, leaving a > hidden instance open WITH the associated merge text document open as well, > preventing the next merge from occurring. > > I need to know if it is possible to open word in a mode that prevents it > from being closed by the user? I would then have the user go back to my > application and press a button saying that they succeeded in doing the mail > merge. I would save the document and close Word down. > > Can I prevent the user from closing Word? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com John, IIRC, the solution may lie in the three "auto" macros you can use in the doument template that is used. Its some years since I delved in that diretion, and as I have no longer an M$ based system I can't indicate any more pointers than that I recall that one is automatically invoked on the document being closed. hth -- regards Bruce