I print out instructions for lab work. Usually just a few rows and the 120% zoom is my preffered size.
However, sometimes there are many more rows and the 120% zoom would run into another page.
If I simply use the option in vba code to print to 1 page tall and 100% zoom then the print size is always to small.
What I'm trying to do is always use the maximum zoom. Any way to set zoom to auto?
Heres my code. Any help would be appreciated.
However, sometimes there are many more rows and the 120% zoom would run into another page.
If I simply use the option in vba code to print to 1 page tall and 100% zoom then the print size is always to small.
What I'm trying to do is always use the maximum zoom. Any way to set zoom to auto?
Heres my code. Any help would be appreciated.
VBA Code:
Sub seqprt()
'PRINT PREVIEW FOR SEQUENCE CHART
Sheets("Key").Select
Range("B1", Range("H100").End(xlUp)).Name = "SeqChart"
With Sheets("Key").PageSetup
.PrintArea = SeqChart
.LeftHeader = "&""Arial,bold""&10" _
& Range("Instrument") _
& " " _
& Range("Program")
.RightHeader = "&""Arial,Bold""&12" _
& Range("Operator") _
& " " _
& "&""Arial,Bold""&10" & Range("Date")
.LeftMargin = Application.InchesToPoints(0.3)
.RightMargin = Application.InchesToPoints(0.3)
.TopMargin = Application.InchesToPoints(0.5)
.BottomMargin = Application.InchesToPoints(0.3)
.HeaderMargin = Application.InchesToPoints(0.3)
.CenterHorizontally = True
.Orientation = xlPortrait
.Draft = True
.PaperSize = xlPaperLetter
.BlackAndWhite = True
.Zoom = 120
.FitToPagesTall = 1
End With
Range("SeqChart").PrintPreview
ThisWorkbook.Save
Call Show_LotQual_Ctrl
End Sub