Printing odd pages

M

mattguerilla

Hi,

Is it possible to print odd and then even pages in Excel?
If so, how?

Matt
 
P

Paul B

Matt, there might be a setting in print set up for this in your printer, if
not you could use this macro to do it

Sub PrintDoubleSided()

'Will print odd or even pages

'By Gord Dibben

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
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Top