I am running the code below to setup the Page layout of my spreadsheet.
Do you why it's taking so long when I run it?
Do you know why the line ".CenterFooter = "&[Tab]" instead of giving me the name of the sheet, it gives me the value "[TAB]" in my print preview
With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
.Orientation = xlLandscape
.LeftMargin = Application.InchesToPoints(0.7)
.RightMargin = Application.InchesToPoints(0.7)
.TopMargin = Application.InchesToPoints(0.98)
.BottomMargin = Application.InchesToPoints(0.98)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.CenterFooter = "&[Tab]"
Thanks
Do you why it's taking so long when I run it?
Do you know why the line ".CenterFooter = "&[Tab]" instead of giving me the name of the sheet, it gives me the value "[TAB]" in my print preview
With ActiveSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
.Orientation = xlLandscape
.LeftMargin = Application.InchesToPoints(0.7)
.RightMargin = Application.InchesToPoints(0.7)
.TopMargin = Application.InchesToPoints(0.98)
.BottomMargin = Application.InchesToPoints(0.98)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.CenterFooter = "&[Tab]"
Thanks