Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to print on both sides

I should have mentioned we have a printer that has
printing on both sides capabilities. Xerox Document Center
332.

-----Original Message-----
Herb

Run once to print odd numbered pages. Turn paper over in

tray then run again
to print even numbered pages.

Sub PrintDoubleSided()
Dim Totalpages As Long
Dim pg As Long
Dim oddoreven As Integer
On Error GoTo enditt
Totalpages = ExecuteExcel4Macro("Get.Document(50)")
oddoreven = InputBox("Enter 1 for Odd, 2 for Even")
For pg = oddoreven To Totalpages Step 2
ActiveWindow.SelectedSheets.PrintOut from:=pg,

To:=pg
Next pg
enditt:
End Sub

Gord Dibben Excel MVP - XL97 SR2 & XL2002

On Fri, 18 Jul 2003 07:19:07 -0700, "Herb"


wrote:

I have two sheets in one workbook I need to print on one
sheet. Can this be done with a macro?

Thanks for your help.


.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Macro to print on both sides

If this is just you running the macro, maybe you can create another printer
(same physical printer, though) that is set up for duplex. Then your macro can
just change to that printer (and back) when you want to print duplex/simplex.

If you have a small number of people running the macro, it might be worth
setting up a second for them.

(I'd record a macro when switching printers to get the spelling of the printers
correct.)

Herb wrote:

I need the macro to do this. I have a macro that opens
other workbooks then copies different sheets to my open
workbook. Then I have some sheets printed on one side and
the rest on both sides of the paper.

I need to know the syntex on how to do this.
I don't want the users to have to do anything.

Thanks for the quick reply.
Regards,
Herb

-----Original Message-----
Then go into the printer setup dialog and set it to do

duplex printing.

Then just print your document.

Regards,
Tom Ogilvy


"Herb" wrote in message
...
I should have mentioned we have a printer that has
printing on both sides capabilities. Xerox Document

Center
332.

-----Original Message-----
Herb

Run once to print odd numbered pages. Turn paper over

in
tray then run again
to print even numbered pages.

Sub PrintDoubleSided()
Dim Totalpages As Long
Dim pg As Long
Dim oddoreven As Integer
On Error GoTo enditt
Totalpages = ExecuteExcel4Macro("Get.Document(50)")
oddoreven = InputBox("Enter 1 for Odd, 2 for Even")
For pg = oddoreven To Totalpages Step 2
ActiveWindow.SelectedSheets.PrintOut from:=pg,
To:=pg
Next pg
enditt:
End Sub

Gord Dibben Excel MVP - XL97 SR2 & XL2002

On Fri, 18 Jul 2003 07:19:07 -0700, "Herb"

wrote:

I have two sheets in one workbook I need to print on

one
sheet. Can this be done with a macro?

Thanks for your help.

.



.


--

Dave Peterson

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
Print on both sides of paper from two worksheets SC in Texas Excel Discussion (Misc queries) 9 April 4th 23 02:31 PM
print on both sides problem Jamie Excel Discussion (Misc queries) 2 September 16th 09 12:37 AM
area of a rectangle having two sides equal and two sides diffferen Mr. Rai Excel Worksheet Functions 3 September 3rd 08 09:51 AM
i want to print using both sides of A4 sheet Rox Excel Discussion (Misc queries) 4 August 8th 05 09:01 PM
Macro to print on both sides Tom Ogilvy Excel Programming 0 July 18th 03 04:48 PM


All times are GMT +1. The time now is 11:37 PM.

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

About Us

"It's about Microsoft Excel"