I have been trying to print the worksheet using a command button. As of now I have the code :
Private Sub CommandButton2_Click()
Dim wSht As Worksheet
Set wSht = Worksheets("Define COAs")
With wSht.PageSetup
.PrintArea = "$A$1:$G$12"
.PaperSize = xlPaperLetter
.Orientation = xlLandscape
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
wSht.PrintOut
End Sub
This works to print out my worksheet but it prints on two pages and I need it to print on only one page. Any Ideas on how I can do this?
Private Sub CommandButton2_Click()
Dim wSht As Worksheet
Set wSht = Worksheets("Define COAs")
With wSht.PageSetup
.PrintArea = "$A$1:$G$12"
.PaperSize = xlPaperLetter
.Orientation = xlLandscape
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
wSht.PrintOut
End Sub
This works to print out my worksheet but it prints on two pages and I need it to print on only one page. Any Ideas on how I can do this?