Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.PageSetup Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a PageSetup object representing a publication's page size, page layout and paper settings. Read-only.

Syntax

expression. PageSetup

_expression_A variable that represents a Document object.

Return Value

PageSetup

Remarks

You can only use the PageSetup property when printing multiple pages on a single sheet of printer paper. If the page size is greater than half the paper size, Microsoft Publisher will display an error.

Example

This example specifies page setup options for a publication with multiple publication pages printed on each sheet of printer paper.

Sub SetTopMargin() 
 With ActiveDocument.PageSetup 
 .PageHeight = InchesToPoints(5) 
 .PageWidth = InchesToPoints(8) 
 .MultiplePagesPerSheet = True 
 .TopMargin = InchesToPoints(0.25) 
 .LeftMargin = InchesToPoints(0.25) 
 End With 
End Sub
© 2018 Microsoft