Share via


Shape.Apply Method

Word Developer Reference

Applies to the specified shape formatting that has been copied using the PickUp method.

Syntax

expression.Apply

expression   Required. A variable that represents a Shape object.

Remarks

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

Example

This example copies the formatting of shape one on the active document and applies the copied formatting to shape two on the same document.

Visual Basic for Applications
  With ActiveDocument
    .Shapes(1).PickUp
    .Shapes(2).Apply
End With

See Also