Window.Height property (Word)
Returns or sets the height of the window (in points). Read/write Long.
Syntax
expression.Height
expression A variable that represents a Window object.
Remarks
You cannot set this property if the window is maximized or minimized. Use the UsableHeight property of the Application object to determine the maximum size for the window. Use the WindowState property to determine the window state.
Example
This example changes the height of the active window to fill the application window area.
With ActiveDocument.ActiveWindow
.WindowState = wdWindowStateNormal
.Height = Application.UsableHeight
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.