PageSetup.PageWidth property (Publisher)

Returns or sets a Variant that represents the width of the pages in a publication. Read/write.

Syntax

expression.PageWidth

expression A variable that represents a PageSetup object.

Return value

Variant

Remarks

Numeric values are evaluated as points. String values can be in any unit supported by Microsoft Publisher (for example, "2.5 in"). The valid range of possible values is from zero to the difference between the sheet width and the page width.

Example

The following example sets a width of eight inches for the pages in the active publication.

Public Sub PageWidth_Example() 
 ActiveDocument.PageSetup.PageWidth = InchesToPoints(8) 
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.