How to print uneven pages Excel 97

  • Thread starter Thread starter David D
  • Start date Start date
D

David D

I need to print uneven pages only in Microsoft Excel 97.
I am new to this. Could someone help please. Thanks.
David
 
David

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

Note Dave P.'s pointer to David McRitchie's "Getting Started with Macros"

Gord Dibben XL2002
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top