Re: Close Word with macro?
- From: "Charles Kenyon" <wordfaq@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 May 2006 17:09:23 -0500
Think about your habits (and those of your users) before you implement this!
What other documents are likely to be open? Will changes to those be a good
thing to save, or not? Do you really want to abandon changes to the document
you have been working on?
--
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!
My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.
"tcebob" <handle @ gwi.net> wrote in message
news:ee01EFcfGHA.1276@xxxxxxxxxxxxxxxxxxxxxxx
Holy crabapples, it works! Here's the script (cribbed shamelessly from
Help):
Sub ExitTime()
'
'Wait for 1 hour then exit word.
'
Dim PauseTime, Start
PauseTime = 3600 ' Set duration.
Start = Timer ' Set start time.
Do While Timer < Start + PauseTime
DoEvents ' Yield to other processes.
Loop
Application.Quit SaveChanges:=wdDoNotSaveChanges
End
End Sub
Thanks again,
rs
"Charles Kenyon" <wordfaq@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uskPAwafGHA.4892@xxxxxxxxxxxxxxxxxxxxxxx
: Yes.
: What is it you are trying to accomplish? Version(s) of Word?
: You may want to post this in the vba.beginners group.
: --
: 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!
:
: My criminal defense site: http://addbalance.com
: --------- --------- --------- --------- --------- ---------
: 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.
:
:
: "tcebob" <handle @ gwi.net> wrote in message
: news:uayUppafGHA.5104@xxxxxxxxxxxxxxxxxxxxxxx
: > Can one write a macro to quietly close Word, with no user
intervention?
: >
: > rs
: >
: >
:
:
.
- References:
- Re: Close Word with macro?
- From: Charles Kenyon
- Re: Close Word with macro?
- Prev by Date: Re: Macro for Letter Settings Help
- Next by Date: Open and Save Dialogs
- Previous by thread: Re: Close Word with macro?
- Next by thread: Word Xp and Word 2003: newbie ?
- Index(es):
Relevant Pages
|