Apply Method

See Also         Example         Applies To

AutoCorrectEntry object: Replaces a range with the value of the specified AutoCorrect entry.

Shape or ShapeRange object: Applies to the specified shape formatting that has been copied using the PickUp method.

Syntax 1

expression.Apply(Range)

Syntax 2

expression.Apply

expression   Required. An expression that returns an AutoCorrectEntry object (Syntax 1) or a Shape or ShapeRange object (Syntax 2).

Range   Required Range object. The Range that's replaced by the AutoCorrect entry.

Remarks

If formatting for the Shape or ShapeRange object has not previously been copied using the PickUp method, using the Apply method generates an error.