Top Property [Application, AutoExcelWin, AutoWindow]

The Top property returns or sets the coordinate for the top edge of the window. Returns a Long.

Syntax

object.Top

object.Top = newVal

 

Parameter Type Description
newVal Long required, use pixels

 

Example 1

This example demonstrates how to return the distance, in pixels, between the top of the application window and the top of the Desktop window.

Debug.Print GrapherApp.Top

 

Example 2

This example demonstrates how to position the top of the application window at 100 pixels.

Grapher.Top = 100

 

Used by: Application object, AutoWindow object