RangeFromPoint Method

See Also         Example         Applies To

Returns the Range or Shape object that is located at the point specified by the screen position coordinate pair. If no range or shape is located at the coordinate pair specified, the method returns Nothing.

Syntax

expression.RangeFromPoint(x, y)

expression   Required. An expression that returns a Window object.

x   Required Long. The horizontal distance (in pixels) from the left edge of the screen to the point.

y   Required Long. The vertical distance (in pixels) from the top of the screen to the point.