枚举属性并赋值吧。
Option Explicit
Sub Example() Dim ThisPageSetup As PageSetup, NewPageSetup As PageSetup Set ThisPageSetup = ThisDocument.PageSetup Set NewPageSetup = Documents.Add.PageSetup With NewPageSetup .BookFoldPrinting = ThisPageSetup.BookFoldPrinting .BookFoldPrintingSheets = ThisPageSetup.BookFoldPrintingSheets .BookFoldRevPrinting = ThisPageSetup.BookFoldRevPrinting .BottomMargin = ThisPageSetup.BottomMargin .CharsLine = ThisPageSetup.CharsLine .DifferentFirstPageHeaderFooter = ThisPageSetup.DifferentFirstPageHeaderFooter .FirstPageTray = ThisPageSetup.FirstPageTray .FooterDistance = ThisPageSetup.FooterDistance .Gutter = ThisPageSetup.Gutter .GutterPos = ThisPageSetup.GutterPos .GutterStyle = ThisPageSetup.GutterStyle .HeaderDistance = ThisPageSetup.HeaderDistance .LayoutMode = ThisPageSetup.LayoutMode .LeftMargin = ThisPageSetup.LeftMargin .LineNumbering = ThisPageSetup.LineNumbering .LinesPage = ThisPageSetup.LinesPage .MirrorMargins = ThisPageSetup.MirrorMargins .OddAndEvenPagesHeaderFooter = ThisPageSetup.OddAndEvenPagesHeaderFooter .Orientation = ThisPageSetup.Orientation .OtherPagesTray = ThisPageSetup.OtherPagesTray .PageHeight = ThisPageSetup.PageHeight .PageWidth = ThisPageSetup.PageWidth .PaperSize = ThisPageSetup.PaperSize .RightMargin = ThisPageSetup.RightMargin .SectionDirection = ThisPageSetup.SectionDirection .SectionStart = ThisPageSetup.SectionStart .SuppressEndnotes = ThisPageSetup.SuppressEndnotes .TextColumns = ThisPageSetup.TextColumns .TopMargin = ThisPageSetup.TopMargin .TwoPagesOnOne = ThisPageSetup.TwoPagesOnOne .VerticalAlignment = ThisPageSetup.VerticalAlignment End With End Sub
|