Hi, I am trying to quit a newly created word document after setting the document to print. Problem is that I get a error message that the print will cancel if I close the word document.
How do I code it where I can close the word document after the print end? Here's a sample of my code...
wrdApp.ActiveDocument.PrintOut
wrdDoc.Saved = False
'tried putting a timer here but it won't work if the document is queue
wrdApp.Quit
Thanks in advance.
How do I code it where I can close the word document after the print end? Here's a sample of my code...
wrdApp.ActiveDocument.PrintOut
wrdDoc.Saved = False
'tried putting a timer here but it won't work if the document is queue
wrdApp.Quit
Thanks in advance.