UsableHeight Property

Applies To

Application object.

Description

Returns the height (in points) of the space that can be used by a window in the application window area. Read-only Long.

Note If the UsableHeight property returns 1, there's no space available for a document window. When there's no vertical space available, the horizontal (UsableWidth) value isn't valid. To determine the actual available height, subtract 1 from the UsableHeight value.

See Also

UsableWidth property.

Example

This example increases the size of the active document window to fill the application window area except for a 5-point border on the top and the left side of the window.

With ActiveWindow
    .WindowState = wdWindowStateNormal
    .Top = 5
    .Left = 5
    .Height = Application.UsableHeight
    .Width = Application.UsableWidth
End With