palaeontology
Active Member
- Joined
- May 12, 2017
- Messages
- 444
- Office Version
- 2016
- Platform
- Windows
Hi,
I have the following code to print page 1 of any worksheet with a 5-digit name
However, is it possible to change this code (again for any sheet with a 5-digit name) to print page 1 in landscape, and page 2 in portrait ?
Kind regards,
Chris
I have the following code to print page 1 of any worksheet with a 5-digit name
Code:
For Each ws In ThisWorkbook.Worksheets
If ws.Name Like "#####" Then
ws.PrintOut from:=1, To:=1
End If
Next ws
However, is it possible to change this code (again for any sheet with a 5-digit name) to print page 1 in landscape, and page 2 in portrait ?
Kind regards,
Chris