This documentation is archived and is not being maintained.

clientTop Property

Office 2003

Returns a Long that represents the distance in pixels between the offsetTop property and the true top of the client area.


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


The following example displays a message containing the height, width, top, and left measurements of the body of the active document.

    Sub GetClientInfo()
    Dim objBody As FPHTMLBody
    Set objBody = ActiveDocument.body
    With objBody
        MsgBox "height" & vbTab & .clientHeight & vbCrLf & _
            "width" & vbTab & .clientWidth & vbCrLf & _
            "top" & vbTab & .clientTop & vbCrLf & _
            "left" & vbTab & .clientLeft & vbCrLf
    End With
End Sub