DocumentWindow.RangeFromPoint (PowerPoint)

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

Syntax : expression.RangeFromPoint (X, Y)

Dim lngX As Long: lngX = 240
Dim lngY As Long: lngY =  300
Dim shpRangeFromPoint As Shape
Set shpRangeFromPoint = ActiveWindow.RangeFromPoint(X:=lngX, Y:=lngY)


The following arguments are required:

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

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