A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Microsoft Word Help
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Delay Print



 
 
Thread Tools Display Modes
  #1  
Old February 1st 06, 05:23 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Delay Print

This is probably simple, but here goes;

I want to delay a print job until sometime in the middle of the night. The
document I want to print is a Word doc, and the printer is a network shared
printer, not a locally connected printer.
Ads
  #2  
Old February 1st 06, 07:47 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Delay Print

Nathan wrote:
This is probably simple, but here goes;

I want to delay a print job until sometime in the middle of the
night. The document I want to print is a Word doc, and the printer
is a network shared printer, not a locally connected printer.


One way is to use a pair of macros like these. The first one schedules the
running of the second one. Put both macros in Normal.dot, in a module named
Module1 (the default name for a module added by clicking Insert Module in
the macro editor). Change the time in the When parameter as needed -- you
can also use 24-hour notation, such as "23:30:00".

Sub PrintLater()
Application.OnTime _
When:="11:30:00 pm", _
Name:="Normal.Module1.PrintNow", _
Tolerance:=0
End Sub

Sub PrintNow()
ActiveDocument.PrintOut Background:=False
MsgBox ActiveDocument.Name & " printed at " & Now
End Sub

Open the document you want to print, run the PrintLater macro, and leave
Word running. When you come back in the morning you should find the document
on the printer and the message box on the screen.

Another way would be to create a batch file that contains a command line to
print the document:

start winword.exe "c:\docs\mydoc.doc" /mFilePrintDefault

Then create a scheduled task to run the batch file at the desired time. How
you do this depends on your version of Windows; in WinXP it's Start
Settings Control Panel Scheduled Tasks Add Scheduled Task.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print without seeing the print dialogue box first Iceman_Aragorn Microsoft Word Help 2 November 4th 05 07:31 PM
CTRL P causes delay in displaying print dialog box Christine Microsoft Word Help 2 August 23rd 05 11:25 PM
Page Numbers Print { PAGE } in Footer in WORD even after ALT + F9 Brent Microsoft Word Help 3 June 2nd 05 05:35 PM
Print 3" x 5" cards, Word 2002 Jim E New Users 10 May 25th 05 04:23 AM
word print dialog box delay mark Microsoft Word Help 2 January 23rd 05 07:09 PM


All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.