I am trying to use different page setups but I get object errors. What is the proper way to use the page setup arguments?
VBA Code:
Sub Print_DB()
Dim db As Worksheet
With db
.PageSetup.FitToPagesWide
.PageSetup.PaperSize = xlPaperLetter
.PageSetup.Orientation = xlLandscape
End With
Range("DBPrint").PrintPreview
End Sub