How do you print pages 1 AND 3 in a worksheet?

  • Thread starter Thread starter SirLoin
  • Start date Start date
S

SirLoin

Am I being silly?
In Word, it is easy and obvious, but in excel there is no function t
print a range.

Putting "1,3" gives a "bad integer" message.

Please help the noob.

Le
 
try this
Sub printsheets()
ma = Array("Sheet1", "Sheet3", "Sheet5")
For x = LBound(ma) To UBound(ma)
Sheets(ma(x)).PrintPreview
Next x
End Sub
 
Back
Top