Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you find printer status?

Status
Not open for further replies.

ITdev

Programmer
Aug 6, 2001
25
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top