InRange Method

InRange Method

See Also         Example         Applies To

Returns True if the range or selection to which the method is applied is contained in the range specified by the Range argument.

Syntax

expression.InRange(Range)

expression   Required. An expression that returns a Range or Selection object.

Range   Required Range object. The range to which you want to compare expression.

Remarks

This method determines whether the range or selection returned by expression is contained in the specified Range by comparing the starting and ending character positions, as well as the story type.