DashboardNovice
Member
I want to click a button and then print page one of each tab. But some tabs have more than one page (I can see this in page break preview).
Is this possible?
Is this possible?
Hi DV
This should get your over the line. It worked in my office.
Code:Sub test1() Dim sh As Worksheet For Each sh In Sheets sh.PrintOut 1, 1, 1, , , , True, , False Next sh End Sub
Take care
Smallman
Private Sub CommandButton1_Click()
Sheet1.PrintPreview True
For i = 1 To Worksheets.Count
strRes = MsgBox("Do you want to print " & Worksheets.Item(i).Name, vbOKCancel, "Print Preview")
If strRes = 1 Then
Worksheets.Item(i).PrintPreview True
End If
Next
End Sub