| 
    
     |  | お世話になっております。 超初級者です。
 余白の設定について教えてください。
 
 シートを選択して、余白などを一括で設定したいのですが。。。
 自動記録で、余白などの設定を行い、シートを選択してから実行すると
 最初の1ページだけが実行されます。
 
 よろしくお願い致します。
 
 Sub Macro8()
 '
 ' Macro8 Macro
 ' マクロ記録日 : 2005/2/24 ユーザー名 : sabou3
 '
 
 '
 With ActiveSheet.PageSetup
 .LeftHeader = ""
 .CenterHeader = ""
 .RightHeader = ""
 .LeftFooter = ""
 .CenterFooter = ""
 .RightFooter = ""
 .LeftMargin = Application.InchesToPoints(0.393700787401575)
 .RightMargin = Application.InchesToPoints(0.393700787401575)
 .TopMargin = Application.InchesToPoints(0.590551181102362)
 .BottomMargin = Application.InchesToPoints(0.590551181102362)
 .HeaderMargin = Application.InchesToPoints(0.31496062992126)
 .FooterMargin = Application.InchesToPoints(0.31496062992126)
 .PrintHeadings = False
 .PrintGridlines = False
 .PrintComments = xlPrintNoComments
 .PrintQuality = 600
 .CenterHorizontally = True
 .CenterVertically = True
 .Orientation = xlLandscape
 .Draft = False
 .PaperSize = xlPaperA4
 .FirstPageNumber = xlAutomatic
 .Order = xlDownThenOver
 .BlackAndWhite = False
 .Zoom = 100
 .PrintErrors = xlPrintErrorsDisplayed
 End With
 ActiveWindow.SelectedSheets.PrintPreview
 End Sub
 
 |  |