Syntax
DocWindowPosLeft Position
DocWindowPosLeft()
Remarks
The DocWindowPosLeft statement positions the active document window or icon so that it is Position points from the left border of the workspace. If the active document is maximized, Word cannot perform this action and generates
an error. The DocWindowPosLeft() function returns the horizontal position in points.
Example
This example displays the horizontal and vertical positions of the active document window relative to the border of the workspace:
horizpos = DocWindowPosLeft() vertpos = DocWindowPosTop() MsgBox "Points from left:" + Str$(horizpos) + Chr$(13) + \ "Points from top:" + Str$(vertpos), "Doc Window Position"
See Also
AppWindowPosLeft, DocMove, DocSize, DocWindowHeight, DocWindowPosTop, DocWindowWidth