AppMove Method

Moves the main window

expression**.AppMove(XPosition, YPosition, Points)**

*expression   *     Optional. An expression that returns an Application object.

XPosition     Optional Long. A number that specifies the distance of the main window from the left edge of the screen.

YPosition     Optional Long. A number that specifies the distance of the main window from the top edge of the screen.

Points     Optional Boolean. True if XPosition and YPosition are measured in points. False if they are measured in pixels. The default value is False.

Example

The following example moves Microsoft Office Project 2003's main window 9 points to the left.

Sub MoveMainWindowToLeft()
    AppMove XPosition:=Application.Left - 9, Points:=True
End Sub

Applies to | Application Object

See Also | AppExecute Method | AppMaximize Method | AppMinimize Method | AppRestore Method | AppSize Method