Edit

Share via


Task.Top property (Word)

Returns or sets the vertical position, in points, of the specified window. Read/write Long.

Syntax

expression.Top

expression Required. A variable that represents a 'Task' object.

Example

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

See also

Task Object

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.