Share via


ConvertToInlineShape Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

                 

Converts the specified shape in the drawing layer of a document to an inline shape in the text layer. You can convert only shapes that represent pictures, OLE objects, or ActiveX controls. This method returns an InlineShape object that represents the picture or OLE object.

Syntax

expression**.ConvertToInlineShape**

expression   Required. An expression that returns a Shape or ShapeRange object.

Remarks

Shapes that support attached text cannot be converted to inline shapes. For these shapes, use the ConvertToFrame method.

If you use this method on a ShapeRange object that contains more than one shape, an error occurs.