Document.PageSetup property (Publisher)

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 displays 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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.