Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default examine print queue from vb

I' running excel 2000 on nt 4, sp6.

My users have win 98, excel 2000, pentium 350, 64mb ram
(don't laugh).

I've used you guys' help to write macros to reduce the
manual gyrations these users used to go thru & I
appreciate all the help you've provided.

So here I am again.

Every Monday & Friday they need to open 48 different
workbooks and print two to four pages (with formatting)
from two sheets. They were doing this manually.

I am able to do this with macros.

Problem occurs when only networked printer available is
backed up with jobs.

They begin to get various system (I think) errors
indicating a problem within the 'activesheet.pagesetup'
routine. These routines are used for all 48 workbooks &
don't fail unless the network printer is backed up.

Ok, all that to get here.

Is there a way via VB to examine the active printer & see
how many print jobs are waiting? If possible, I know I can
come up with a routine to wait until the print queue is
clear or at some threshold.

As always I appreciate any and all help.

Thanks - Mike




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default examine print queue from vb

Mike Molyneaux wrote:
Is there a way via VB to examine the active printer & see
how many print jobs are waiting? If possible, I know I can
come up with a routine to wait until the print queue is
clear or at some threshold.


Since I don't know of such a means, I would just put in an
Application.Wait Now+TimeValue("0:0:20") ' or whatever
in the loop between printing each workbook.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default examine print queue from vb


thanks, i'm sure that will do the trick.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know of program or Excel VBA to examine set of numbers for Sum match? [email protected] Excel Discussion (Misc queries) 2 August 27th 08 05:13 AM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"