Excel macro: Queue up prints?

Jul 26, 2006
143
2
81
I have a macro that collects data, create a form, then sends that page to be printed.

The problem: Data collection takes almost 1 minute. So if I need to run this 100 times it means 1 page is printed every minute.

Is there a simple/easy way I can have excel create an internal 'print' queue, so after it runs 100 times, it just sends 100 print jobs to the printer (so they print all at once)?

I am thinking I can probably re-code the macro so it creates a new worksheet for each time it runs, then after 100 items are created it just loops over all of them... But I am hoping for maybe something a bit cleaner?
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,101
126
If you don't have any other printing jobs, then pause the printer then unpause the printer after 100 data collections & printing jobs are finished? Print jobs will stay in printing queue until you unpause it.
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,101
126
Another way is print to individual PDF files first then loop through PDF files and print to real printers when the job is done.
 
Last edited:
Jul 26, 2006
143
2
81
This is a macro that I did not code and is run at work. So part of the problem is my prints and many other employees prints get mixed up. I am not sure how 'pausing' the printer would work, but even if it did only pause my items, it would still mean I could not print anything else while I am waiting for the macro to finish.
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,101
126
You did not code the macro but you can modify it, is that right? If you can modify it, then print the job to pdf printer. Then batch print those pdf files.

I haven't program for a while, but I know it can be done.
 
Jul 26, 2006
143
2
81
Not sure how this pdf saving things works (as I have never done that with a macro). That being said, I cannot save any of this data (as it contains sensitive information), nor do I have internet access to download any third party API/libraries.
 

Tweak155

Lifer
Sep 23, 2003
11,448
262
126
Sounds like a poorly written macro if it takes 1 minute to gather data that can fit on 1 sheet of paper unless you have network limitations. Sounds like you could improve the quality of the macro as well depending on the size of it so there is not a 1 minute delay between prints. But, saving the data to separate tabs then printing is likely a lot easier and will work just as well.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |