Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns or sets the width of the page in points. Read/write Single.
Syntax
expression. PageWidth
expression An expression that returns a PageSetup object.
Remarks
Setting the PageWidth property changes the PaperSize property to wdPaperCustom. Use the PaperSize property to set the page height and width to those of a predefined paper size, such as Letter or A4.
Example
This example returns the page width for Document1. The PointsToInches method is used to convert points to inches.
Set doc1set = Documents("Document1").PageSetup
Msgbox "The page width is " _
& PointsToInches(doc1set.PageWidth) & " inches."
See also
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.