Task.Top property (Word)
Returns or sets the vertical position, in points, of the specified window. Read/write Long.
expression.Top
expression Required. A variable that represents a 'Task' object.
This example starts the Calculator and positions its window 100 points from the top of the screen.
Shell "Calc.exe"
With Tasks("Calculator")
.WindowState = wdWindowStateNormal
.Top = 100
End With
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.