Task.Top Property

Word Developer Reference

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.

Visual Basic for Applications
  Shell "Calc.exe"
With Tasks("Calculator")
    .WindowState = wdWindowStateNormal
    .Top = 100
End With

See Also