Probably a quick fix question, but does anyone know how to make this code work without making the view switch to the 103Bouts sheet? I want all the information to be applied to that sheet, and to print that sheet, without the user seeing the actual sheet. Right now the view switches to that sheet, does its configuration, and then switches back to the 103 page.
<Code>
Sheets("103Bouts").Select
Range("A1:I80").Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$80"
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$80"
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.75)
.RightMargin = Application.InchesToPoints(0.75)
.TopMargin = Application.InchesToPoints(1)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = 91
End With
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("103").Select
ActiveWindow.SmallScroll Down:=-36
Range("A1:N1").Select
End Sub
</Code>
Thanks in advance,
-Scy