Syntax
DocWindowHeight Height
DocWindowHeight()
Remarks
The DocWindowHeight statement sets the active document window to the specified Height, in points (72 points = 1 inch), without affecting its width. If the active document is maximized or minimized, Word cannot perform this action and generates an error. The DocWindowHeight() function returns the height of the active document window in points.
Example
This example restores the active document window if it is maximized or minimized, moves it to the upper-left corner of the workspace, and then sizes the window to 267 points high:
If DocMaximize() or DocMinimize() Then DocRestore DocMove 0, 0 DocWindowHeight 267
See Also
AppWindowHeight, DocSize, DocWindowWidth