DoCmd.MoveSize method (Access)
The MoveSize method carries out the MoveSize action in Visual Basic.
Syntax
expression.MoveSize (Right, Down, Width, Height)
expression A variable that represents a DoCmd object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Right | Optional | Variant | The new horizontal position of the window's upper-left corner, measured from the left edge of its containing window. |
Down | Optional | Variant | The new vertical position of the window's upper-left corner, measured from the top edge of its containing window. |
Width | Optional | Variant | The window's new width. |
Height | Optional | Variant | The window's new height. |
Remarks
Use the MoveSize method to move or resize the active window.
The units for the arguments are twips.
You must include at least one argument for the MoveSize method. If you leave an argument blank, the current setting for the window is used.
Example
The following example moves the active window and changes its height, but leaves its width unchanged.
DoCmd.MoveSize 1440, 2400, , 2000
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.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기