Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'Sets the print area and print formatting
  2.    
  3.     ActiveSheet.PageSetup.PrintArea = "=" & ActiveSheet.UsedRange.Address
  4.  
  5.     With ActiveSheet.PageSetup
  6.         .PrintTitleRows = "$1:$3"
  7.         .LeftMargin = Application.InchesToPoints(0)
  8.         .RightMargin = Application.InchesToPoints(0)
  9.         .TopMargin = Application.InchesToPoints(0)
  10.         .BottomMargin = Application.InchesToPoints(0.4)
  11.         .HeaderMargin = Application.InchesToPoints(0)
  12.         .FooterMargin = Application.InchesToPoints(0.1)
  13.         .Orientation = xlLandscape
  14.         .FitToPagesWide = 1
  15.         .FitToPagesTall = False
  16.     End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement