Moves the main Project window.
expression. AppMove
( _XPosition_
, _YPosition_
, _Points_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
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 |
Boolean
The following example moves the main window of Project nine points to the left.
Sub MoveMainWindowToLeft()
AppMove XPosition:=Application.Left - 9, Points:=True
End Sub
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.