cannot schedule word to open document, print, and exit

T

thanx, Greg

purpose, have scheduler call word, open a document, and run a macro each
morning. i tried setting up a macro 'PrintQuit' with the following lines:
activedocument.printout
application.quit
but word will not quit because the spooler is still active.
tried adding a timing loop
start=timer
do while timer < start + 300
doevents
loop
before the quit, but still get the same error. suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top