In my code I send a Word doc to the printer. Then I close the doc and the Word app. Problem is I can't control how long to wait between sending the doc to the printer and closing the Word doc and then app.
I've tried several variations, but here is one I'm working with now:
Set objRange = objDoc.Content 'CREATE THE RANGE OBJECT
objDoc.PrintOut, 1
objDoc.Close (wdDoNotSaveChanges)
objApp.Quit
Set objApp = nothing
I usually get the message asking if I want to close the doc it will stop printing. Or, it will change the Normal template ( I believe that is at the objApp.Quit part)
Anyhow, I would like to know some command to make the Extra wait until the printing is done then close the doc (without saving it) and eventually Word too.
Is there another way to print a doc with info the macro collect aside from opening a word processing program that might help me avoid this problem altogether?
Thanks!
I've tried several variations, but here is one I'm working with now:
Set objRange = objDoc.Content 'CREATE THE RANGE OBJECT
objDoc.PrintOut, 1
objDoc.Close (wdDoNotSaveChanges)
objApp.Quit
Set objApp = nothing
I usually get the message asking if I want to close the doc it will stop printing. Or, it will change the Normal template ( I believe that is at the objApp.Quit part)
Anyhow, I would like to know some command to make the Extra wait until the printing is done then close the doc (without saving it) and eventually Word too.
Is there another way to print a doc with info the macro collect aside from opening a word processing program that might help me avoid this problem altogether?
Thanks!