Code working on break but freezing on run of it??
Posted on 2004-10-08
Hello all. I have a loop where I am printing documents. On the break of the code the code works perfect and prints everything in the order I want. When I full run it, the printer gets all these documents to he spooler quickly and they print all out of order. So I added a line of code to wait until the background print completed before continuing and again it works perfect on the break of the code but it freezes on the full run without a break. This problem is driving me nuts. Can anyone help this is the code:
For xcount = 1 to 20
xcount = xcount + 1
ActiveDocument.PrintOut Range:=wdPrintFromTo, from:="1", To:=10
Do While Application.BackgroundPrintingStatus > 0