F
From128Kto1Gig
Version: 2004
Operating System: Mac OS X 10.4 (Tiger)
Processor: Power PC
I need to have my Visual basic macro button bring up the print menu instead of sending the file right to the printer, so I can select to have the file print to a pdf when I need to.
Here is one of my macros:
Sub AllYears_IS()
'Income Statement
Sheets("Income Statement").Select
With ActiveSheet.PageSetup
.PrintArea = "$B$13:$BB$117"
.PrintTitleRows = "$16:$16"
.PrintTitleColumns = "$A:$A"
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.CenterFooter = "&9Page 1"
.LeftMargin = Application.InchesToPoints(0.5)
.RightMargin = Application.InchesToPoints(0.5)
.TopMargin = Application.InchesToPoints(0.5)
.BottomMargin = Application.InchesToPoints(0.5)
.HeaderMargin = Application.InchesToPoints(0)
.FooterMargin = Application.InchesToPoints(0.25)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
..CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
'.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 2
End With
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("B6").Select
End Sub
Operating System: Mac OS X 10.4 (Tiger)
Processor: Power PC
I need to have my Visual basic macro button bring up the print menu instead of sending the file right to the printer, so I can select to have the file print to a pdf when I need to.
Here is one of my macros:
Sub AllYears_IS()
'Income Statement
Sheets("Income Statement").Select
With ActiveSheet.PageSetup
.PrintArea = "$B$13:$BB$117"
.PrintTitleRows = "$16:$16"
.PrintTitleColumns = "$A:$A"
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.CenterFooter = "&9Page 1"
.LeftMargin = Application.InchesToPoints(0.5)
.RightMargin = Application.InchesToPoints(0.5)
.TopMargin = Application.InchesToPoints(0.5)
.BottomMargin = Application.InchesToPoints(0.5)
.HeaderMargin = Application.InchesToPoints(0)
.FooterMargin = Application.InchesToPoints(0.25)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
..CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
'.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 2
End With
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Range("B6").Select
End Sub