Share via


Application.Move Method

Word Developer Reference

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.

Visual Basic for Applications
  Shell "Calc.exe"
With Tasks("Calculator")
    .WindowState = wdWindowStateNormal
    .Move Top:=50, Left:=50
End With

See Also