Hi, What changes do I need to do to the macro below for it to apply to a selected group of worksheets?
Thanks
Sub Headers()
'
' Headers Macro
' Macro recorded 08/01/2004 by ChristoferBeckman
'
'
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = "&""ScalaSans-Bold,Regular""&14&UClient Name"
.CenterHeader = "&""ScalaSans-Bold,Regular""&14&UTitle"
.RightHeader = "&""ScalaSans-Bold,Regular""&14&Utmp.worldwide"
.LeftFooter = ""
.CenterFooter = "&""ScalaSans-Regular,Regular""Page &P of &N"
.RightFooter = "&""ScalaSans-Bold,Regular""Date:"
.LeftMargin = Application.InchesToPoints(0.748031496062992)
.RightMargin = Application.InchesToPoints(0.748031496062992)
.TopMargin = Application.InchesToPoints(0.984251968503937)
.BottomMargin = Application.InchesToPoints(0.47244094488189)
.HeaderMargin = Application.InchesToPoints(0.511811023622047)
.FooterMargin = Application.InchesToPoints(0.236220472440945)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = True
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
End With
End Sub
Thanks
Sub Headers()
'
' Headers Macro
' Macro recorded 08/01/2004 by ChristoferBeckman
'
'
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = "&""ScalaSans-Bold,Regular""&14&UClient Name"
.CenterHeader = "&""ScalaSans-Bold,Regular""&14&UTitle"
.RightHeader = "&""ScalaSans-Bold,Regular""&14&Utmp.worldwide"
.LeftFooter = ""
.CenterFooter = "&""ScalaSans-Regular,Regular""Page &P of &N"
.RightFooter = "&""ScalaSans-Bold,Regular""Date:"
.LeftMargin = Application.InchesToPoints(0.748031496062992)
.RightMargin = Application.InchesToPoints(0.748031496062992)
.TopMargin = Application.InchesToPoints(0.984251968503937)
.BottomMargin = Application.InchesToPoints(0.47244094488189)
.HeaderMargin = Application.InchesToPoints(0.511811023622047)
.FooterMargin = Application.InchesToPoints(0.236220472440945)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = True
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
.PaperSize = xlPaperA4
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
End With
End Sub