Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 8 Nov 2005 09:52:44 +0100,    group: microsoft.public.word.vba.customization        back       


Avoid dialog SaveAs when closing a document   
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
date: Tue, 8 Nov 2005 09:52:44 +0100   author:   Gina

Re: Avoid dialog SaveAs when closing a document   
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
>
>
date: Tue, 8 Nov 2005 03:51:15 -0600   author:   Charles Kenyon

Re: Avoid dialog SaveAs when closing a document   
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
> >
> >
>
>
date: Tue, 8 Nov 2005 12:46:15 +0100   author:   Gina

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us