InlineShapes.AddPicture method (Word)
Adds a picture to a document. Returns an InlineShape object that represents the picture.
Syntax
expression. AddPicture
( _FileName_
, _LinkToFile_
, _SaveWithDocument_
, _Range_
)
expression Required. A variable that represents an 'InlineShapes' collection.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
FileName | Required | String | The path and file name of the picture. |
LinkToFile | Optional | Variant | 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 | Optional | Variant | True to save the linked picture with the document. The default value is False. |
Range | Optional | Variant | 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. |
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.