Not a problem. This macro is activated at the shortcut command for this particular
document, or in the Scheduler. Normal Word operation is not affected. Oh, wait, I see your
point; suppose some other document is being edited. Theoretically the operator is supposed
to see the time log pop up, fill in a line and dismiss it. But, of course, operator could
be away drinking lunch or studying the ponies in the rest room. Ok, there must be a way to
activate a document in a completely new run of Word. Or close the Log without closing Word
if there are more documents open.
But. The damn thing still doesn't work, though it works when I test it. It still gags on
something and puts up an error screen.
Back to the drawing board.
rs
: 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
:
:
:
:
: --------- --------- --------- --------- --------- ---------
: 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.
:
:
: : > 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
: >
: >
: > : > : 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
: > :
: > :
: > :
: > :
: > : --------- --------- --------- --------- --------- ---------
: > : 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.
: > :
: > :
: > : : > : > Can one write a macro to quietly close Word, with no user
: > intervention?
: > : >
: > : > rs
: > : >
: > : >
: > :
: > :
: >
: >
:
: