This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|Dim ws As Worksheet: Set ws = ThisWorkbook.ActiveSheet|
|.Orientation = xlLandscape|
|.Zoom = False|
|.FitToPagesTall = 1|
|.FitToPagesWide = 1|
|.PrintArea = "B1:R41"|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This was super helpful, thanks.
.PrintArea = "B1:R41"
to always set the current selection
.PrintArea = ActiveCell.CurrentRegion.Address