Hello All,
I have an Excel worksheet which scrapes information from another program. Depending on the length of the scraped information I may have to print page 1, 2 and 3. If there isn't enough information, I only print page 1 and 3. I know how to print page 1 to 3, however I can't find out how to print page 1 and 3.
Here is the code I would normally use:
Is it even possible to print selected pages?
Thanks for any help.
I have an Excel worksheet which scrapes information from another program. Depending on the length of the scraped information I may have to print page 1, 2 and 3. If there isn't enough information, I only print page 1 and 3. I know how to print page 1 to 3, however I can't find out how to print page 1 and 3.
Here is the code I would normally use:
Code:
Private Sub CommandButton3_Click()
If Range("B55:B55") = "" Then
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=3, Copies:=1, Collate _
:=True
Else
ActiveWindow.SelectedSheets.PrintOut From:=1, [aqua][b]and[/b][/aqua]:=3, Copies:=1, Collate _
:=True
End If
End Sub
Is it even possible to print selected pages?
Thanks for any help.