You are on page 1of 1

Sub impares()

Dim x As Integer
Cantidad = InputBox("imprimir hojas impares de la 1, hasta la hoja:", "Impresion
selectiva")
For x = 1 To Cantidad Step 2
ActiveWindow.SelectedSheets.PrintOut from:=x, To:=x
Next x
End Sub
Sub pares()
Dim x As Integer
NºpagPares = InputBox("imprimir hojas pares de la 2, hasta la hoja:", "Impresion s
electiva")
For x = 2 To NºpagPares Step 2
ActiveWindow.SelectedSheets.PrintOut from:=x, To:=x
Next x
End Sub

You might also like