Application.Move Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Positions a task window or the active document window.

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.

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
Show: