Skip to content

Commit

Permalink
Create SetPrintArea.vb
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitosh committed Nov 16, 2015
1 parent a1f4452 commit e2b4066
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions SetPrintArea.vb
@@ -0,0 +1,18 @@
Public Sub SetPrintArea()

Dim r_print_range As Range

Set r_print_range = tbl_plan.Range(Cells(1, 1), Cells(obj_plan.LastLine, obj_cal.RightColPosition))

With tbl_plan.PageSetup
.LeftHeader = ""
.CenterHeader = "&""Calibri,bold""&25" & "Ankaufsunterlagen"

.PrintArea = r_print_range.Address
.FitToPagesWide = 1
.FitToPagesTall = 1
.Orientation = xlLandscape

End With

End Sub

0 comments on commit e2b4066

Please sign in to comment.