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

help printing by stalling the running of the code

Status
Not open for further replies.

wooonelly

IS-IT--Management
Feb 23, 2006
19
0
0
US
I have code that looks like this at the end:

ActiveDocument.PrintOut
ActiveDocument.Close False
Kill OutputFile
Application.Quit False

The problem is that it runs too fast and it closes everything before the printout starts. Is there a way to run the activedocument.printout, wait for it to print and then close out of everything?
 
Code:
ActiveDocument.PrintOut(Background:=False)
ActiveDocument.Close False
Kill OutputFile
Application.Quit False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top