Share via


bottomMargin Property

Returns or sets a String that represents the number of pixels for the bottom margin of the page.

expression.bottomMargin

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets the bottom, left, right, and top margins to 50 pixels.

Sub SetMargins()
    Dim objBody As FPHTMLBody
    
    Set objBody = ActiveDocument.body
    
    With objBody
        .bottomMargin = "50"
        .leftMargin = "50"
        .rightMargin = "50"
        .topMargin = "50"
    End With
End Sub

Applies to | FPHTMLBody Object | IHTMLBodyElement Object