InlineShapes.New method (Word)

Inserts an empty, 1-inch-square Word picture object surrounded by a border. This method returns the new graphic as an InlineShape object.

Syntax

expression. New( _Range_ )

expression Required. A variable that represents an 'InlineShapes' collection.

Parameters

Name Required/Optional Data type Description
Range Required Range object The location of the new graphic.

Return value

InlineShape

Example

This example inserts a new, empty picture in the active document and applies a shadow border around the picture.

Dim ishapeNew As InlineShape 
 
Set ishapeNew = _ 
 ActiveDocument.InlineShapes.New(Range:=Selection.Range) 
 
ishapeNew.Borders.Shadow = True 
ActiveDocument.ActiveWindow.View.ShowFieldCodes = False

See also

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