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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code Help Needed 1

Status
Not open for further replies.

adscrims

Programmer
Aug 21, 2001
24
GB
I have a button on a form and it goes into word prints a document and the closes itself down. However because word is closing whilst printing is taking place an error prompt occurs. This is because there is not enough time for the document to print before it closes. Is there any code i can use to delay the quit command for a bit whilst the print job is executed.
Thanks in advance Andy :-9
 
If it is not totally automated (are you in front of your PC when using this app?), add a MsgBox before the .close which will halt execution until you answer...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top