PageSetup.PageHeight property (Word)
Returns or sets the height of the page in points. Read/write Single.
Syntax
expression. PageHeight
expression An expression that returns a PageSetup object.
Remarks
Setting the PageHeight 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 sets the page height for the active document to 9 inches.
With ActiveDocument.PageSetup
.PageHeight = InchesToPoints(9)
.PageWidth = InchesToPoints(7)
End With
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for