AddPicture Method

See Also         Example         Applies To

Creates a picture from an existing file. Returns a Shape object that represents the new picture.

Syntax

expression.AddPicture(FileName, LinkToFile, SaveWithDocument, Left, Top, Width, Height)

expression   Required. An expression that returns a Shapes object.

FileName   Required String. The file from which the OLE object is to be created.

LinkToFile   Required Long. True to link the picture to the file from which it was created. False to make the picture an independent copy of the file.

SaveWithDocument   Required Long. True to save the linked picture with the document into which it's inserted. False to store only the link information in the document. This argument must be True if LinkToFile is False.

Left, Top   Required Single. The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the document.

Width, Height   Optional Single. The width and height of the picture, in points.