Syntax
DocWindowWidth Width
DocWindowWidth()
Remarks
The DocWindowWidth statement sets the active document window to the specified Width, in points (72 points = 1 inch), without affecting its height. If the active document is maximized or minimized, Word cannot perform this action and generates an error. The DocWindowWidth() function returns the width of the active document window in points.
Example
This example maximizes the Word window (Windows) and restores document windows. If there are two open document windows, the windows are each sized to 240 points in width and are placed side by side.
If InStr(AppInfo$(1), "Macintosh") = 0 Then If AppMaximize() = 0 Then AppMaximize End If If CountWindows() = 2 Then If DocMaximize() Or DocMinimize() Then DocRestore DocMove 0, 0 DocWindowWidth 240 NextWindow If DocMinimize() Or DocMinimize() Then DocRestore DocMove 240, 0 DocWindowWidth 240 End If
See Also
AppWindowWidth, DocSize, DocWindowHeight