ShapeRange.ConvertToInlineShape method (Word)

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. .

Syntax

expression. ConvertToInlineShape

expression Required. A variable that represents a ShapeRange object.

Return value

InlineShape

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.

Example

This example converts each picture in MyDoc.doc to an inline shape.

For Each s In Documents("MyDoc.doc").Shapes 
 If s.Type = msoPicture Then 
 s.ConvertToInlineShape 
 End If 
Next s

See also

ShapeRange Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.