Hello,
I would like to set the print area of all sheets in one file at once.
Since I do not know how to programm I simply recorded the steps of setting of the print area in one sheet.
But how do I have to adapt that macro to make it set the print area in all sheets?
I would like to tell him to select all sheets in the active workbook and do the setting of the print area.
I tried to elimenate the futile parts of the macro ( I thought the lines ending with a FALSE can be erases),
but am not sure if I do not miss a lot.
Sub Print_set()
'
' Print_set Macro
'
'
Range("A1:Y56").SelectAll
ActiveSheet.PageSetup.PrintArea = "$A$1:$Y$56"
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = "&8Druckdatum: &D"
.CenterFooter = ""
.RightFooter = "&8CTR.-&F/&A"
.LeftMargin = Application.InchesToPoints(0.433070866141732)
.RightMargin = Application.InchesToPoints(0.31496062992126)
.TopMargin = Application.InchesToPoints(0.590551181102362)
.BottomMargin = Application.InchesToPoints(0.551181102362205)
.HeaderMargin = Application.InchesToPoints(0.511811023622047)
.FooterMargin = Application.InchesToPoints(0.236220472440945)
.Orientation = xlLandscape
.Draft = False
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.FitToPagesWide = 1
.FitToPagesTall = 1
.PrintErrors = xlPrintErrorsDisplayed
.ScaleWithDocHeaderFooter = True
.EvenPage.LeftHeader.Text = ""
.EvenPage.CenterHeader.Text = ""
.EvenPage.RightHeader.Text = ""
.EvenPage.LeftFooter.Text = ""
.EvenPage.CenterFooter.Text = ""
.EvenPage.RightFooter.Text = ""
.FirstPage.LeftHeader.Text = ""
.FirstPage.CenterHeader.Text = ""
.FirstPage.RightHeader.Text = ""
.FirstPage.LeftFooter.Text = ""
.FirstPage.CenterFooter.Text = ""
.FirstPage.RightFooter.Text = ""
End With
Application.PrintCommunication = True
End Sub
Regards
Pvp
Bookmarks