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
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.
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk