PageSetup.BottomMargin property (Word)
Returns or sets the distance (in points) between the bottom edge of the page and the bottom boundary of the body text. Read/write Single.
expression A variable that represents a PageSetup object.
This example sets the bottom margin to 72 points (1 inch) and the top margin to 2 inches for the active document. The InchesToPoints method is used to convert inches to points.
With ActiveDocument.PageSetup .BottomMargin = 72 .TopMargin = InchesToPoints(2) End With
This example sets the bottom margin to 2.5 inches for all the sections in the current selection.
Selection.PageSetup.BottomMargin = InchesToPoints(2.5)
This example returns the bottom margin for section 1 in the selection. The PointsToInches method is used to convert the result to inches.
Dim sngMargin As Single sngMargin = Selection.Sections(1).PageSetup.BottomMargin MsgBox PointsToInches(sngMargin) & " inches"
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.