Application.Move Method (Word)
Positions a task window or the active document window.
Syntax
expression .Move(Left, Top)
expression Required. A variable that represents an Application object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Left |
Required |
Long |
The horizontal screen position of the specified window. |
Top |
Required |
Long |
The vertical screen position of the specified window. |
Example
This example starts the Calculator application (Calc.exe) and uses the Move method to reposition the application window.
Shell "Calc.exe"
With Tasks("Calculator")
.WindowState = wdWindowStateNormal
.Move Top:=50, Left:=50
End With