Hello,
i'm using macro to speed up printint to one page process as i print a big number of documents daily.
It worked good but for some reasons it takes considerably longer now to run - making it pointless to use.
Can anyone spot anything wrong with it:
Sub Macro1()
'
' Keyboard Shortcut: Ctrl+t
'
Application.ScreenUpdating = False
Application.EnableEvents = False
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.166645835937175)
.RightMargin = Application.InchesToPoints(0.166645835937175)
.TopMargin = Application.InchesToPoints(0.166645835937175)
.BottomMargin = Application.InchesToPoints(0.166645835937175)
.HeaderMargin = Application.InchesToPoints(0)
.FooterMargin = Application.InchesToPoints(0)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = True
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
.PrintErrors = xlPrintErrorsNA
End With
ActiveWindow.SelectedSheets.PrintPreview
End Sub
Apprieciate any comments/ suggestions
Please let me know if you need more info
i'm using macro to speed up printint to one page process as i print a big number of documents daily.
It worked good but for some reasons it takes considerably longer now to run - making it pointless to use.
Can anyone spot anything wrong with it:
Sub Macro1()
'
' Keyboard Shortcut: Ctrl+t
'
Application.ScreenUpdating = False
Application.EnableEvents = False
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.166645835937175)
.RightMargin = Application.InchesToPoints(0.166645835937175)
.TopMargin = Application.InchesToPoints(0.166645835937175)
.BottomMargin = Application.InchesToPoints(0.166645835937175)
.HeaderMargin = Application.InchesToPoints(0)
.FooterMargin = Application.InchesToPoints(0)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = True
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
.PrintErrors = xlPrintErrorsNA
End With
ActiveWindow.SelectedSheets.PrintPreview
End Sub
Apprieciate any comments/ suggestions
Please let me know if you need more info