Hi all. I have a document called from access 2000 via vba. Two possibilities allow the user to print it (as single or double copy). Anything else is disabled ( thanks to help of some clever guys here !!) Now, my final problem is, that when a user clicks the X in the top right corner of a word document, how to avoid the upcoming dialog save (yes,no,cancel) . I tried the AutoClose event: But non of the following really works properly when there have changes been made to the document Application.Quit SaveChanges:=False ActiveWindow.Close SaveChanges:=False ActiveDocument.Close SaveChanges:=False Is there a way at all to get what I have in mind ?? Shoukld I save it to any name and then delete it afterwards ? - How ? Thanks in advance for any help !! Gina
ActiveDocument.Saved = True -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "Gina" wrote in message news:dkpp51$a0a$03$1@news.t-online.com... > Hi all. > > I have a document called from access 2000 via vba. Two possibilities allow > the user to print it (as single or double copy). Anything else is > disabled > ( thanks to help of some clever guys here !!) > Now, my final problem is, that when a user clicks the X in the top right > corner of a word document, how to avoid the upcoming dialog save > (yes,no,cancel) . > > I tried the AutoClose event: > But non of the following really works properly when there have changes > been > made to the document > Application.Quit SaveChanges:=False > ActiveWindow.Close SaveChanges:=False > ActiveDocument.Close SaveChanges:=False > > Is there a way at all to get what I have in mind ?? > Shoukld I save it to any name and then delete it afterwards ? - How ? > > Thanks in advance for any help !! > > Gina > >
Hi Charles ... works like a smooth !!! big thanks :-)) Gina "Charles Kenyon" schrieb im Newsbeitrag news:ejOuynE5FHA.1032@TK2MSFTNGP11.phx.gbl... > ActiveDocument.Saved = True > > -- > Charles Kenyon > > Word New User FAQ & Web Directory: http://addbalance.com/word > > Intermediate User's Guide to Microsoft Word (supplemented version of > Microsoft's Legal Users' Guide) http://addbalance.com/usersguide > > See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! > --------- --------- --------- --------- --------- --------- > This message is posted to a newsgroup. Please post replies > and questions to the newsgroup so that others can learn > from my ignorance and your wisdom. > > "Gina" wrote in message > news:dkpp51$a0a$03$1@news.t-online.com... > > Hi all. > > > > I have a document called from access 2000 via vba. Two possibilities allow > > the user to print it (as single or double copy). Anything else is > > disabled > > ( thanks to help of some clever guys here !!) > > Now, my final problem is, that when a user clicks the X in the top right > > corner of a word document, how to avoid the upcoming dialog save > > (yes,no,cancel) . > > > > I tried the AutoClose event: > > But non of the following really works properly when there have changes > > been > > made to the document > > Application.Quit SaveChanges:=False > > ActiveWindow.Close SaveChanges:=False > > ActiveDocument.Close SaveChanges:=False > > > > Is there a way at all to get what I have in mind ?? > > Shoukld I save it to any name and then delete it afterwards ? - How ? > > > > Thanks in advance for any help !! > > > > Gina > > > > > >