PageSetup.PageWidth Property

Publisher Developer Reference

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

Version Information
 Version Added:  Publisher 2007

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 Office 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.

Visual Basic for Applications
  Public Sub PageWidth_Example()
    ActiveDocument.PageSetup.PageWidth = InchesToPoints(8)
End Sub

See Also