Macro for duplex printing Word 2003?

Macro for duplex printing Word 2003?

Post by Eric » Sat, 27 Nov 2004 18:25:34


his is a multi-part message in MIME format.


Hello,



In Word 2003 there is a print function for "Manual duplex" and this function works fine for me printing on my printer, an old HP LaserJet 4 Plus.



However, I would like to add a print icon to my toolbar that invokes a simple macro that turns on the "Manual duplex" function and after the print job is finished, resets the print function to normal (i.e. Manual duplex).



To record (through "Tools/Macro/Record New Macro"), name and place a button associated with the macro is no problem, but running the resulting macro will not cause the printer to print manual duplex, it just prints plain single sided.



Any suggestions?



Best regards,







Eric G

Stockholm, Sweden



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>Hello,</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>In Word 2003 there
is a print function for "Manual duplex" and this function works fine for me
printing on my printer, an old HP LaserJet 4 Plus.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>However, I would
like to add a print icon to my toolbar that invokes a simple macro that turns on
the "Manual duplex" function and after the print job is finished, resets the
print function to normal (i.e. Manual duplex).</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>To record (through
"Tools/Macro/Record New Macro"), name and place a button associated with the
macro is no problem, but running the resulting macro will not cause the printer
to print manual duplex, it just prints plain single sided.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>Any
suggestions?</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3>Best
regards,</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT
size=3> </FONT></o:p></P>
&
 
 
 

Macro for duplex printing Word 2003?

Post by Graham May » Sat, 27 Nov 2004 19:49:12

You have asked this question repeatedly and no-one has come up with a
solution in this group. You could try posting in the vba group.
Incidentally, what does manual duplex do? I thought the HP4 was a single
sided printer?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://www.yqcomputer.com/
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>







function works fine for me printing on my printer, an old HP LaserJet 4

simple macro that turns on the "Manual duplex" function and after
Manual duplex).

associated with the macro is no problem, but running
just prints plain single sided.

 
 
 

Macro for duplex printing Word 2003?

Post by Eric » Sat, 27 Nov 2004 23:32:47

Graham,

Yes, I've asked this question previously, but due to my computer having been
reset by someone in my office, my query came up at the very bottom of the
group with a date of 19 November, 2001, and, I guess that most readers of
this group sort the queries chronologically, with the latest date on top,
and then, consequently, wouldn't look at a message from 2001. That's the one
and only reason for the new post, not to irritate the great people that
participate in this group, like yourself. If I overstepped the line, I
unreservedly apologize.

To answer your question, in Microsoft Word 2003, you can under
Tools/Options/Print set Options for duplex printing, to either start to
print on front, or, on back of the sheet. At print time, you then select
Print manual duplex, i.e. first of all the printer prints, say, even pages,
then you take the bunch of printed sheets, turn them over and put them in
the manual feed, hit the button and print the other (odd) side. Actually
quite a convenient feature. I've also got a large color laser with duplexer,
that obviously is easier to control.

Once again, I apologize if I upset you or anyone else.

Regards,


Eric G
 
 
 

Macro for duplex printing Word 2003?

Post by Graham May » Sun, 28 Nov 2004 01:21:36

pologies not required. Now I see the plan - try

Application.PrintOut FileName:="", ManualDuplexPrint:=True
Application.PrintOut ManualDuplexPrint:=False, _
Range:=wdPrintRangeOfPages, Pages:="0"

There's probably a way of switching off the Manual Duplex flag without
printing a blank document, but I can't think of it off hand. This method
should only cause a problem if you add envelopes as you will get a second
envelope.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Eric G wrote:


 
 
 

Macro for duplex printing Word 2003?

Post by Eric » Mon, 29 Nov 2004 18:42:52

raham,

It looks as if your solution is working without hick-ups, as far as I can
tell after a quick test. There also appears to be no need to reset the
Manual Duplex flag, as - at least on my system - it resets itself.

Many thanks for your kind help.

Regards,


Eric G
Stockholm, Sweden




"Graham Mayor" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...


 
 
 

Macro for duplex printing Word 2003?

Post by Graham May » Mon, 29 Nov 2004 22:05:09

he second line of the macro prints page 0 without the flag set so that is
what is switching off the flag here.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Eric G wrote: