H
Henry
Word 2K running under WinXP.
I've got a command button on my Doc. with the code behind it as:
Me.Printout
Me.SaveAs ("filename") etc.
Application.Quit
The problem is that I'm printing to a network printer and the network can be
very slow at times.
It's only one page long, but I often get a messagebox popping up saying that
the printing hasn't finished and closing down word will cancel the print
job.
I've tried putting DoEvents at various places in the code and tried to use
Application.Wait (a valid Excel VBA command, but not valid in Word VBA) to
force a pause, all to no avail.
Any of you Word VBA gurus got an answer to this one?
TIA
Henry
I've got a command button on my Doc. with the code behind it as:
Me.Printout
Me.SaveAs ("filename") etc.
Application.Quit
The problem is that I'm printing to a network printer and the network can be
very slow at times.
It's only one page long, but I often get a messagebox popping up saying that
the printing hasn't finished and closing down word will cancel the print
job.
I've tried putting DoEvents at various places in the code and tried to use
Application.Wait (a valid Excel VBA command, but not valid in Word VBA) to
force a pause, all to no avail.
Any of you Word VBA gurus got an answer to this one?
TIA
Henry