Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following...
For Each mySht In ActiveWorkbook.Worksheets With mySht.PageSetup .PrintTitleRows = "$1:$1" .PrintTitleColumns = "" End With mySht.PageSetup.PrintArea = "" With mySht.PageSetup .LeftHeader = "" .CenterHeader = _ "&""Arial,Bold""&14centerheader " & Chr(10) & "HEADER." .RightHeader = "&""Arial,Italic""as of &D, &T" .LeftFooter = _ "&""Arial,Italic""&12This is my footer"& Chr(10) & "" & Chr(10) & "Signatu_" .CenterFooter = "" .RightFooter = "" .LeftMargin = Application.InchesToPoints(0.25) .RightMargin = Application.InchesToPoints(0.25) .TopMargin = Application.InchesToPoints(1) .BottomMargin = Application.InchesToPoints(1.25) .HeaderMargin = Application.InchesToPoints(0.25) .FooterMargin = Application.InchesToPoints(0.25) .PrintHeadings = False .PrintGridlines = False .PrintComments = xlPrintNoComments .PrintQuality = 1200 .CenterHorizontally = False .CenterVertically = False .Orientation = xlPortrait .Draft = False .PaperSize = xlPaperLetter .FirstPageNumber = xlAutomatic .Order = xlDownThenOver .BlackAndWhite = False .Zoom = False .FitToPagesWide = 1 .FitToPagesTall = 99 .PrintErrors = xlPrintErrorsDisplayed Next mySht It is supposed to format all the sheets in the workbook, but it only works on the first sheet. I am having the same problem with the rest of the formatting (changing column widths, hiding cells, etc) Any help is much appreciated.... I feel like I'm so close, yet so far! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
format cells in 30 different sheets | Excel Discussion (Misc queries) | |||
Format cells the same in two sheets | Excel Programming | |||
format 10 sheets on same file to look like first one | New Users to Excel | |||
Format all sheets in one Workbook | Excel Discussion (Misc queries) | |||
Format multiple sheets in VBA | Excel Programming |