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

See also

Application Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.