InlineShapes.AddPicture procedure builder

InlineShapes.AddPicture (Word)

Adds a picture to a document. Returns an InlineShape object that represents the picture.

AddPicture (FileName, LinkToFile, SaveWithDocument, Range)

Dim strFileName As String: strFileName =  
Dim iseAddPicture As InlineShape
Set iseAddPicture = ActiveDocument.Range.InlineShapes.AddPicture(FileName:=strFileName)


The following argument is required

FileName (String) - The path and file name of the picture.

Optional arguments

The following arguments are optional

LinkToFile - True to link the picture to the file from which it was created. False to make the picture an independent copy of the file. The default value is False

SaveWithDocument - True to save the linked picture with the document. The default value is False

Range - The location where the picture will be placed in the text. If the range isn't collapsed, the picture replaces the range; otherwise, the picture is inserted. If this argument is omitted, the picture is placed automatically