Hi All,
I'm trying to pass this code to a header:
'Range("C4").Value = Department_Name
strHeader = Cells.Range("C4").Value
With ActiveSheet.PageSetup
.PrintTitleRows = "$6:$8"
.CenterHeader = "&""Calibri,Bold""&28" & strHeader
.CenterFooter = "&P"
.LeftMargin = Application.InchesToPoints(0.2)
.RightMargin = Application.InchesToPoints(0.2)
.TopMargin = Application.InchesToPoints(0.75)
.BottomMargin = Application.InchesToPoints(0.25)
.HeaderMargin = Application.InchesToPoints(0.3)
.FooterMargin = Application.InchesToPoints(0.25)
.Orientation = xlLandscape
.PaperSize = xlPaperLegal
.ScaleWithDocHeaderFooter = True
.AlignMarginsHeaderFooter = True
.OddAndEvenPagesHeaderFooter = False
End With
End Sub
For some reason, everything works, but my Font Size ends up being 409 pt size and I can't figure out why. Any help is appreciated.
Thanks!
Jim
I'm trying to pass this code to a header:
'Range("C4").Value = Department_Name
strHeader = Cells.Range("C4").Value
With ActiveSheet.PageSetup
.PrintTitleRows = "$6:$8"
.CenterHeader = "&""Calibri,Bold""&28" & strHeader
.CenterFooter = "&P"
.LeftMargin = Application.InchesToPoints(0.2)
.RightMargin = Application.InchesToPoints(0.2)
.TopMargin = Application.InchesToPoints(0.75)
.BottomMargin = Application.InchesToPoints(0.25)
.HeaderMargin = Application.InchesToPoints(0.3)
.FooterMargin = Application.InchesToPoints(0.25)
.Orientation = xlLandscape
.PaperSize = xlPaperLegal
.ScaleWithDocHeaderFooter = True
.AlignMarginsHeaderFooter = True
.OddAndEvenPagesHeaderFooter = False
End With
End Sub
For some reason, everything works, but my Font Size ends up being 409 pt size and I can't figure out why. Any help is appreciated.
Thanks!
Jim