GetPoint Method

See Also         Example         Applies To

Returns the screen coordinates of the specified range or shape.

Syntax

expression.GetPoint(ScreenPixelsLeft, ScreenPixelsTop, ScreenPixelsWidth, ScreenPixelsHeight, obj)

expression   Required. An expression that returns a Window object.

ScreenPixelsLeft   Required Long. The variable name to which you want Microsoft Word to return the value for the left edge of the object.

ScreenPixelsTop   Required Long. The variable name to which you want Word to return the value for the top edge of the object.

ScreenPixelsWidth   Required Long. The variable name to which you want Word to return the value for the width of the object.

ScreenPixelsHeight   Required Long. The variable name to which you want Word to return the value for the height of the object.

obj   Required Object. A Range or Shape object.

Remarks

If the entire range or shape isn't visible on the screen, an error occurs.